예제 #1
0
        public void MatchesFailsOnNameAndValue()
        {
            var sut = new ActaTuple(Guid.NewGuid(), "test", "value1", 0);

            var result = sut.Matches("test", "value2");

            Assert.IsFalse(result);
        }
예제 #2
0
        public void MatchesSucceedsOnNameAndValue()
        {
            var sut = new ActaTuple(Guid.NewGuid(), "test", "value", 0);

            var result = sut.Matches("test", "value");

            Assert.IsTrue(result);
        }
예제 #3
0
        public void MatchesFailsOnGuidAndName()
        {
            var guid = Guid.NewGuid();
            var sut  = new ActaTuple(guid, "test1", "value", 0);

            var result = sut.Matches(guid, "test2");

            Assert.IsFalse(result);
        }
예제 #4
0
        public void Matches_NameIsCaseInsensitive()
        {
            var guid = Guid.NewGuid();
            var sut  = new ActaTuple(guid, "test", "value", 0);

            var result = sut.Matches(guid, "TEST");

            Assert.IsTrue(result);
        }
예제 #5
0
        public void MatchesSucceedsOnGuidAndName()
        {
            var guid = Guid.NewGuid();
            var sut  = new ActaTuple(guid, "test", "value", 0);

            var result = sut.Matches(guid, "test");

            Assert.IsTrue(result);
        }