|
| 1 | +using System.Collections.Generic; |
| 2 | +using TestStack.Dossier.DataSources; |
| 3 | +using TestStack.Dossier.DataSources.Dictionaries; |
| 4 | +using Xunit.Extensions; |
| 5 | + |
| 6 | +namespace TestStack.Dossier.Tests.EquivalenceClasses |
| 7 | +{ |
| 8 | + namespace TestStack.Dossier.Tests.EquivalenceClasses |
| 9 | + { |
| 10 | + public class AddressUsEquivalenceTests : FileDictionaryEquivalenceTests |
| 11 | + { |
| 12 | + public AnonymousValueFixture Any { get; } = new AnonymousValueFixture(); |
| 13 | + |
| 14 | + [Theory] |
| 15 | + [ClassData(typeof(AddressUsTestCases))] |
| 16 | + public override void WhenGettingAnyData_ThenReturnRandomDataWhichIsReasonablyUnique(DataSource<string> source, List<string> testCases) |
| 17 | + { |
| 18 | + base.WhenGettingAnyData_ThenReturnRandomDataWhichIsReasonablyUnique(source, testCases); |
| 19 | + } |
| 20 | + } |
| 21 | + |
| 22 | + public class AddressUsTestCases : FileDictionaryEquivalenceTestCases |
| 23 | + { |
| 24 | + protected override List<object[]> GetData() |
| 25 | + { |
| 26 | + return new List<object[]> |
| 27 | + { |
| 28 | + new object[] |
| 29 | + {new Words(FromDictionary.AddressUsCity), GenerateTestCasesForSut(Any.AddressUsCity)}, |
| 30 | + new object[] |
| 31 | + {new Words(FromDictionary.AddressUsCompany), GenerateTestCasesForSut(Any.AddressUsCompany)}, |
| 32 | + new object[] |
| 33 | + {new Words(FromDictionary.AddressUsPhone), GenerateTestCasesForSut(Any.AddressUsPhone)}, |
| 34 | + new object[] |
| 35 | + {new Words(FromDictionary.AddressUsSocialSecurityNumber), GenerateTestCasesForSut(Any.AddressUsSocialSecurityNumber)}, |
| 36 | + new object[] |
| 37 | + {new Words(FromDictionary.AddressUsState), GenerateTestCasesForSut(Any.AddressUsState)}, |
| 38 | + new object[] |
| 39 | + { |
| 40 | + new Words(FromDictionary.AddressUsStateAbbreviation), |
| 41 | + GenerateTestCasesForSut(Any.AddressUsStateAbbreviation) |
| 42 | + }, |
| 43 | + new object[] |
| 44 | + {new Words(FromDictionary.AddressUsStreet), GenerateTestCasesForSut(Any.AddressUsStreet)}, |
| 45 | + new object[] |
| 46 | + {new Words(FromDictionary.AddressUsWebsite), GenerateTestCasesForSut(Any.AddressUsWebsite)}, |
| 47 | + new object[] |
| 48 | + {new Words(FromDictionary.AddressUsZipCode), GenerateTestCasesForSut(Any.AddressUsZipCode)} |
| 49 | + }; |
| 50 | + } |
| 51 | + } |
| 52 | + } |
| 53 | +} |
0 commit comments