public void PairHasCorrectConstructor() { // TestTools Code StructureTest test = Factory.CreateStructureTest(); test.AssertPublicConstructor <string, int, Pair <string, int> >((v1, v2) => new Pair <string, int>(v1, v2)); test.AssertPublicConstructor <string, double, Pair <string, double> >((v1, v2) => new Pair <string, double>(v1, v2)); test.Execute(); }
public void RepositoryHasPublicDefaultConstructorThatTakesILogger() { // TestTools Code StructureTest test = Factory.CreateStructureTest(); test.AssertPublicConstructor <ILogger, Repository <ICloneable> >(l => new Repository <ICloneable>(l)); test.Execute(); }
public void TextFileConstructorTakesString() { // TestTools Code StructureTest test = Factory.CreateStructureTest(); test.AssertPublicConstructor <string, TextFile>(s => new TextFile(s)); test.Execute(); }
public void DieConstructorTakesIRandomAndInt() { // TestTools Code StructureTest test = Factory.CreateStructureTest(); test.AssertPublicConstructor <string, ILogger>(s => new FileLogger(s)); test.Execute(); }
public void ImmutableNumberConstructorTakesIntAsArgument() { // TestTools Code StructureTest test = Factory.CreateStructureTest(); test.AssertPublicConstructor <int, ImmutableNumber>(i => new ImmutableNumber(i)); test.Execute(); }
public void MyQueueHasConstructorWhichTakesInt() { // TestTools Code StructureTest test = Factory.CreateStructureTest(); test.AssertPublicConstructor <int, MyQueue <string> >(i => new MyQueue <string>(i)); test.Execute(); }
public void EmployeeConstructorTakesStringAsArgument() { // TestTools Code StructureTest test = Factory.CreateStructureTest(); test.AssertPublicConstructor <string, Employee>(name => new Employee(name)); test.Execute(); }
public void DogHasPublicDefaultConstructor() { // TestTools Code StructureTest test = Factory.CreateStructureTest(); test.AssertPublicConstructor <Dog>(() => new Dog()); test.Execute(); }
public void DieConstructorTakesIRandomAndInt() { // TestTools Code StructureTest test = Factory.CreateStructureTest(); test.AssertPublicConstructor <IRandom, int, Die>((r, s) => new Die(r, s)); test.Execute(); }
public void RepositoryHasPublicDefaultConstructor() { // TestTools Code StructureTest test = Factory.CreateStructureTest(); test.AssertPublicConstructor <Repository <ICloneable> >(() => new Repository <ICloneable>()); test.Execute(); }