public void AddSequenced_TwoItems_AddsBothItems()
        {
            // arrange
            var sut = new OrderedHybridCollection <string, string> ();


            // act
            sut.AddSequenced("aaa");
            sut.AddSequenced("bbb");


            // assert
            sut.Should().Equal("aaa", "bbb");
        }
        public void AddKeyed_TwoItemsWithTheSameKeys_ByDefault_DoesNotAddsNewItem()
        {
            // arrange
            var sut = new OrderedHybridCollection <string, string> ();


            // act
            sut.AddKeyed("a", "aaa");
            sut.AddKeyed("a", "bbb");


            // assert
            sut.Should().Equal("aaa");
        }
        public void AddKeyed_TwoItemsWithTheSameKeys_WithOverwrite_OverwritesOldItem()
        {
            // arrange
            var sut = new OrderedHybridCollection <string, string> ();


            // act
            sut.AddKeyed("a", "aaa");
            sut.AddKeyed("a", "bbb", overwrite: true);


            // assert
            sut.Should().Equal("bbb");
        }
        public void AddKeyed_TwoItemsWithDifferentKeys_AddsBothItems()
        {
            // arrange
            var sut = new OrderedHybridCollection <string, string> ();


            // act
            sut.AddKeyed("a", "aaa");
            sut.AddKeyed("b", "bbb");


            // assert
            sut.Should().Equal("aaa", "bbb");
            sut["a"].Should().Be("aaa");
            sut["b"].Should().Be("bbb");
        }