public void Constructor_InitialisesCorrectly()
        {
            var sut = new HostsFile();

            Assert.Empty(sut.AllComments());
            Assert.Empty(sut.AllHostEntries());
        }
        public void AddComment_AddsCommentToHostFile()
        {
            var sut = new HostsFile();

            sut.AddComment("Test comment");
            Assert.Equal(1, sut.AllComments().Count());
        }
        public void Constructor_InitialisesCorrectly()
        {
            var sut = new HostsFile();

            Assert.Empty(sut.AllComments());
            Assert.Empty(sut.AllHostEntries());
        }
        public void RemoveComment_RemovesCommentFromHostFile()
        {
            var sut = new HostsFile();
            sut.AddComment("Test comment");

            sut.RemoveComment("Test comment");

            Assert.Empty(sut.AllComments());
        }
        public void RemoveComment_RemovesCommentFromHostFile()
        {
            var sut = new HostsFile();

            sut.AddComment("Test comment");

            sut.RemoveComment("Test comment");

            Assert.Empty(sut.AllComments());
        }
 public void AddComment_AddsCommentToHostFile()
 {
     var sut = new HostsFile();
     sut.AddComment("Test comment");
     Assert.Equal(1, sut.AllComments().Count());
 }