コード例 #1
0
        public void WarewolfAtomComparer_Equals_YisNull_ReturnFalse()
        {
            var a        = DataStorage.WarewolfAtom.NewDataString("a");
            var comparer = new WarewolfAtomComparer();

            Assert.IsFalse(comparer.Equals(null, a));
        }
コード例 #2
0
        public void WarewolfAtomComparer_Equals_ReturnTrue()
        {
            var a        = DataStorage.WarewolfAtom.NewDataString("a");
            var b        = DataStorage.WarewolfAtom.NewDataString("a");
            var comparer = new WarewolfAtomComparer();

            Assert.IsTrue(comparer.Equals(a, b));
        }
コード例 #3
0
        public void WarewolfAtomComparer_Equals_BothNull_ReturnTrue()
        {
            var comparer = new WarewolfAtomComparer();

            Assert.IsTrue(comparer.Equals(null, null));
        }