Exemplo n.º 1
0
        public void When_adding_reference_and_new_item_should_be_added_to_equal_list()
        {
            var sut = new PairList<string>();
              sut.AddReferenceItem("");
              sut.AddNewItem("");

              Assert.AreEqual(1, sut.EqualItems.Count());
        }
Exemplo n.º 2
0
        public void When_adding_new_and_reference_item_should_be_added_to_equal_list()
        {
            var sut = new PairList <string>();

            sut.AddNewItem("");
            sut.AddReferenceItem("");

            Assert.AreEqual(1, sut.EqualItems.Count());
        }
Exemplo n.º 3
0
        public void When_adding_referenceItem_should_be_added_to_list()
        {
            var sut = new PairList<string>();
              sut.AddReferenceItem("old");
              sut.AddNewItem("new");

              Assert.AreEqual(1, sut.RemovedItems.Count());
              Assert.AreEqual(1, sut.AddedItems.Count());
        }
Exemplo n.º 4
0
        public void When_adding_referenceItem_should_be_added_to_list()
        {
            var sut = new PairList <string>();

            sut.AddReferenceItem("old");
            sut.AddNewItem("new");

            Assert.AreEqual(1, sut.RemovedItems.Count());
            Assert.AreEqual(1, sut.AddedItems.Count());
        }