public void TestDetectsCorrectConfiguration() { var unityTesting = new IoCTestingUnity(); var errors = unityTesting.CheckDependencies(RegisteringAssemblyPath, "IoCTesting.Tests.Unity.UnityUserCorrectConfiguration", RegisteringAssemblyPath, NamespaceToScan); Assert.AreEqual(0, errors.Count(), string.Join(", ", errors)); }
public void TestDetectsMissingConfiguration() { var structureMapTesting = new IoCTestingUnity(); var errors = structureMapTesting.CheckDependencies(RegisteringAssemblyPath, "IoCTesting.Tests.Unity.UnityUserMissingConfiguration", TestingAssemblyPath, NamespaceToScan); Assert.AreEqual(1, errors.Count(), string.Join(", ", errors)); }