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

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

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

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

            Assert.IsTrue(result);
        }
Beispiel #3
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);
        }
Beispiel #4
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);
        }
Beispiel #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);
        }
Beispiel #6
0
 public void Append(ActaTuple tuple)
 {
     list.Add(tuple);
 }
Beispiel #7
0
        public void TheConstructorSetsTheNameToUppercase()
        {
            var sut = new ActaTuple(Guid.NewGuid(), "test", "value1", 0);

            Assert.AreEqual("TEST", sut.Name);
        }
Beispiel #8
0
 public void ConstructorRejectsInvalidPropertyName()
 {
     var temp = new ActaTuple(Guid.NewGuid(), "  ", "value", 0);
 }