public void ListOfHardcodedClassnames_ShouldBeCrsTransformationAdapters() { IList <string> hardcodedClassNamesForAllKnownImplementations = crsTransformationAdapterLeafFactory.GetClassNamesForAllImplementations(); foreach (string hardcodedClassNameForKnownImplementation in hardcodedClassNamesForAllKnownImplementations) { Assert.IsTrue( crsTransformationAdapterLeafFactory.IsCrsTransformationAdapter( hardcodedClassNameForKnownImplementation ) , "Name of failing class: " + hardcodedClassNameForKnownImplementation ); } }
public void FactoryWithOnlyTwoLeafs_ShouldOnlyContainClassesDotSpatialAndProjNet() { IList <string> allClassNames = factoryWithOnlyTheTwoLeafsDotSpatialAndProjNet.GetClassNamesForAllImplementations(); Assert.AreEqual(2, allClassNames.Count); Assert.That(allClassNames, Does.Contain(classNameDotSpatial)); Assert.That(allClassNames, Does.Contain(classNameProjNet)); Assert.That(allClassNames, Does.Not.Contain(classNameMightyLittleGeodesy)); }