public void IsLoginOK_WhenCalled_CallsStaticLogger() { var lm = new TestableLoginManagerWithStatics(); lm.IsLoginOK("a", "b"); StringAssert.Contains("Yo", lm.Written); }
public void IsLoginOK_WhenCalled_CallsLogger() { var lm = new TestableLoginManagerWithStatics(); lm.IsLoginOK("user", "somepass"); StringAssert.Contains("ok",lm.LogText); }
public void IsLoginOK_WhenCalled_CallsLogger() { var lm = new TestableLoginManagerWithStatics(); lm.IsLoginOK("user", "somepass"); StringAssert.Contains("ok", lm.LogText); }
public void IsLoginOK_LoggerFailes_CallsWSWithMachineName() { var lm = new TestableLoginManagerWithStatics(); lm.MachineNameWillBe = "machine"; SystemTime.Set(new DateTime(2000, 1, 1)); lm.IsLoginOK("user", "somepass"); StringAssert.Contains("ok",lm.LogText); }
public void IsLoginOK_LoggerFailes_CallsWSWithMachineName() { var lm = new TestableLoginManagerWithStatics(); lm.MachineNameWillBe = "machine"; SystemTime.Set(new DateTime(2000, 1, 1)); lm.IsLoginOK("user", "somepass"); StringAssert.Contains("ok", lm.LogText); }
public void IsLoginOK_WhenCalled_CallsStaticLogger() { var lm = new TestableLoginManagerWithStatics(); lm.IsLoginOK("a", "b"); StringAssert.Contains("Yo",lm.Written); }