public void Test_IfDoesNotThrowExecptionIfProviderDllsExist() { File.WriteAllText(expectedDll, ""); var validator = new DependencyValidator(options, logger); validator.Validate(); }
public void Test_IfDoesNotThrowExecptionIfBothOfTheDllsExist() { File.WriteAllText(interceptorDll, ""); File.WriteAllText(kerberosDll, ""); var validator = new DependencyValidator(Path.Combine(Environment.CurrentDirectory, "assembly")); validator.Validate(); }
public void Test_IfThrowsExecptionIfRedisSessionStateProviderIsMissing() { File.WriteAllText(expectedDll, ""); File.Delete(expectedDll); var validator = new DependencyValidator(options, logger); Assert.Throws <Exception>(() => validator.Validate()); }
public void Test_IfThrowsExecptionIfGssKerberosIsMissing() { File.WriteAllText(interceptorDll, ""); File.WriteAllText(kerberosDll, ""); File.Delete(kerberosDll); var validator = new DependencyValidator(Path.Combine(Environment.CurrentDirectory, "assembly")); Assert.Throws <Exception>(() => validator.Validate()); }
public void ValidateTestInput1() { var result = _validator.Validate(_validInput1); Assert.AreEqual(result, _validOutput1); }