예제 #1
0
 public void EqualsTest()
 {
     ExitStatus status = new ExitStatus("myExitCode", "myExitDescription");
     ExitStatus status2 = new ExitStatus("myExitCode", "myExitDescription");
     ExitStatus status3 = new ExitStatus("myExitCode1", "myExitDescription");
     ExitStatus status4 = new ExitStatus("myExitCode1", "myExitDescription1");
     Assert.IsTrue(status.Equals(status2));
     Assert.IsFalse(status.Equals(status3));
     Assert.IsFalse(status.Equals(status4));
     Assert.IsFalse(status3.Equals(status4));
 }
        public void EqualsTest()
        {
            ExitStatus status  = new ExitStatus("myExitCode", "myExitDescription");
            ExitStatus status2 = new ExitStatus("myExitCode", "myExitDescription");
            ExitStatus status3 = new ExitStatus("myExitCode1", "myExitDescription");
            ExitStatus status4 = new ExitStatus("myExitCode1", "myExitDescription1");

            Assert.IsTrue(status.Equals(status2));
            Assert.IsFalse(status.Equals(status3));
            Assert.IsFalse(status.Equals(status4));
            Assert.IsFalse(status3.Equals(status4));
        }
예제 #3
0
 public bool IsExitConnected()
 {
     return(connStat.Equals(ExitStatus.Connected));
 }