5
5
using TestStack . Dossier . DataSources . Dictionaries ;
6
6
using TestStack . Dossier . EquivalenceClasses . Person ;
7
7
using Xunit ;
8
- using Xunit . Extensions ;
9
8
10
9
namespace TestStack . Dossier . Tests . EquivalenceClasses
11
10
{
@@ -26,10 +25,10 @@ public void WhenGettingUniqueEmail_ThenReturnUniqueEmailsAcrossFixtureInstances(
26
25
var any2 = new AnonymousValueFixture ( ) ;
27
26
28
27
PersonEquivalenceExtensions . InitializeUniqueEmailAddressSource ( ) ;
29
- generatedValues . Add ( any2 . UniqueEmailAddress ( ) ) ;
28
+ generatedValues . Add ( any2 . Person . UniqueEmailAddress ( ) ) ;
30
29
for ( var i = 0 ; i < source . Data . Count - 1 ; i ++ )
31
30
{
32
- generatedValues . Add ( Any . UniqueEmailAddress ( ) ) ;
31
+ generatedValues . Add ( Any . Person . UniqueEmailAddress ( ) ) ;
33
32
}
34
33
35
34
generatedValues . Distinct ( ) . Count ( )
@@ -44,17 +43,17 @@ protected override List<object[]> GetData()
44
43
return new List < object [ ] >
45
44
{
46
45
new object [ ]
47
- { new Words ( FromDictionary . PersonEmailAddress ) , GenerateTestCasesForSut ( Any . EmailAddress ) } ,
48
- new object [ ] { new Words ( FromDictionary . PersonLanguage ) , GenerateTestCasesForSut ( Any . Language ) } ,
46
+ { new Words ( FromDictionary . PersonEmailAddress ) , GenerateTestCasesForSut ( Any . Person . EmailAddress ) } ,
47
+ new object [ ] { new Words ( FromDictionary . PersonLanguage ) , GenerateTestCasesForSut ( Any . Person . Language ) } ,
49
48
new object [ ]
50
- { new Words ( FromDictionary . PersonNameFirstFemale ) , GenerateTestCasesForSut ( Any . FemaleFirstName ) } ,
51
- new object [ ] { new Words ( FromDictionary . PersonNameFirst ) , GenerateTestCasesForSut ( Any . FirstName ) } ,
52
- new object [ ] { new Words ( FromDictionary . PersonNameFull ) , GenerateTestCasesForSut ( Any . FullName ) } ,
53
- new object [ ] { new Words ( FromDictionary . PersonNameLast ) , GenerateTestCasesForSut ( Any . LastName ) } ,
49
+ { new Words ( FromDictionary . PersonNameFirstFemale ) , GenerateTestCasesForSut ( Any . Person . NameFirstFemale ) } ,
50
+ new object [ ] { new Words ( FromDictionary . PersonNameFirst ) , GenerateTestCasesForSut ( Any . Person . NameFirst ) } ,
51
+ new object [ ] { new Words ( FromDictionary . PersonNameFull ) , GenerateTestCasesForSut ( Any . Person . NameFull ) } ,
52
+ new object [ ] { new Words ( FromDictionary . PersonNameLast ) , GenerateTestCasesForSut ( Any . Person . NameLast ) } ,
54
53
new object [ ]
55
- { new Words ( FromDictionary . PersonNameFirstMale ) , GenerateTestCasesForSut ( Any . MaleFirstName ) } ,
56
- new object [ ] { new Words ( FromDictionary . PersonNameSuffix ) , GenerateTestCasesForSut ( Any . Suffix ) } ,
57
- new object [ ] { new Words ( FromDictionary . PersonNameTitle ) , GenerateTestCasesForSut ( Any . Title ) } ,
54
+ { new Words ( FromDictionary . PersonNameFirstMale ) , GenerateTestCasesForSut ( Any . Person . NameFirstMale ) } ,
55
+ new object [ ] { new Words ( FromDictionary . PersonNameSuffix ) , GenerateTestCasesForSut ( Any . Person . NameSuffix ) } ,
56
+ new object [ ] { new Words ( FromDictionary . PersonNameTitle ) , GenerateTestCasesForSut ( Any . Person . NameTitle ) } ,
58
57
} ;
59
58
}
60
59
}
0 commit comments