コード例 #1
0
 public void Test_ResultInfo_Equality()
 {
     ResultInfo<string> a = new ResultInfo<string>(true, "My Data 1");
     ResultInfo<string> b = new ResultInfo<string>(true, "My Data 2");
     Assert.That(a.Equals(b), "Equals() comparater returned wrong value");
     Assert.That(a == (b),"== comparater returned wrong value");
     Assert.That(a != (b), Is.EqualTo(false), "!= comparater returned wrong value");
 }
コード例 #2
0
        public void Test_ResultInfo_Equality()
        {
            ResultInfo <string> a = new ResultInfo <string>(true, "My Data 1");
            ResultInfo <string> b = new ResultInfo <string>(true, "My Data 2");

            Assert.That(a.Equals(b), "Equals() comparater returned wrong value");
            Assert.That(a == (b), "== comparater returned wrong value");
            Assert.That(a != (b), Is.EqualTo(false), "!= comparater returned wrong value");
        }