public void SortedCollectionImplementsICollections() { // TestTools Code StructureTest test = Factory.CreateStructureTest(); test.AssertClass <SortedCollection <int> >(new TypeIsSubclassOfVerifier(typeof(ICollection <int>))); test.AssertClass <SortedCollection <double> >(new TypeIsSubclassOfVerifier(typeof(ICollection <double>))); test.Execute(); }
public void LoggerImplementsILogger() { // TestTools Code StructureTest test = Factory.CreateStructureTest(); test.AssertClass <Logger>(new TypeIsSubclassOfVerifier(typeof(ILogger))); test.Execute(); }
public void TextFileImplementsIDisposable() { // TestTools Code StructureTest test = Factory.CreateStructureTest(); test.AssertClass <TextFile>(new TypeIsSubclassOfVerifier(typeof(IDisposable))); test.Execute(); }
public void TemperatureImplementsIComparable() { // TestTools Code StructureTest test = Factory.CreateStructureTest(); test.AssertClass <Temperature>(new TypeIsSubclassOfVerifier(typeof(IComparable))); test.Execute(); }
public void MyRandomImplementsIRandom() { // TestTools Code StructureTest test = Factory.CreateStructureTest(); test.AssertClass <MyRandom>(new TypeIsSubclassOfVerifier(typeof(IRandom))); test.Execute(); }
public void ProductRepositoryImplementsIEnumerable() { // TestTools Code StructureTest test = Factory.CreateStructureTest(); test.AssertClass <ProductRepository>(new TypeIsSubclassOfVerifier(typeof(IEnumerable <Product>))); test.Execute(); }
public void ObservableCollectionImplementsINotifyCollectionChanged() { // TestTools Code StructureTest test = Factory.CreateStructureTest(); test.AssertClass <ObservableCollection <int> >(new TypeIsSubclassOfVerifier(typeof(INotifyCollectionChanged))); test.Execute(); }
public void ManagerIsSubclassOfEmployee() { // TestTools Code StructureTest test = Factory.CreateStructureTest(); test.AssertClass <Manager>(new TypeBaseClassVerifier(typeof(Employee))); test.Execute(); }
public void MyQueueCountIsReadOnlyIntProoerty() { // TestTools Code StructureTest test = Factory.CreateStructureTest(); test.AssertClass <Dog>(new TypeIsSubclassOfVerifier(typeof(ICloneable))); test.Execute(); }
public void NotOldEnoughExceptionIsSubclassOfException() { // TestTools Code StructureTest test = Factory.CreateStructureTest(); test.AssertClass <NotOldEnoughException>(new TypeBaseClassVerifier(typeof(Exception))); test.Execute(); }
public void FileLoggerImplementIDisposable() { // TestTools Code StructureTest test = Factory.CreateStructureTest(); test.AssertClass <FileLogger>( new TypeAccessLevelVerifier(AccessLevels.Public), new TypeIsSubclassOfVerifier(typeof(IDisposable))); test.Execute(); }
public void ArrayHelperIsAStaticClass() { StructureTest test = Factory.CreateStructureTest(); test.AssertClass( typeof(ArrayHelper), new TypeIsStaticVerifier(), new TypeAccessLevelVerifier(AccessLevels.Public)); test.Execute(); }
public void RectangleIsSubclassOfFigure() { // TestTools Code StructureTest test = Factory.CreateStructureTest(); test.AssertClass <Rectangle>( new TypeAccessLevelVerifier(AccessLevels.Public), new TypeBaseClassVerifier(typeof(Figure))); test.Execute(); }
public void CarImplementsIcomparable() { // TestTools Code StructureTest test = Factory.CreateStructureTest(); test.AssertClass <Car>( new TypeAccessLevelVerifier(AccessLevels.Public), new TypeIsSubclassOfVerifier(typeof(IComparable))); test.Execute(); }
public void Test2E1() { // TestTools Code StructureTest test = Factory.CreateStructureTest(); test.AssertClass <CarMakeModelPriceComparer>( new TypeAccessLevelVerifier(AccessLevels.Public), new TypeIsSubclassOfVerifier(typeof(IComparer <Car>))); test.Execute(); }