Ejemplo n.º 1
0
        public void Constructor_InitialisesCorrectly()
        {
            var sut = new HostsFile();

            Assert.Empty(sut.AllComments());
            Assert.Empty(sut.AllHostEntries());
        }
Ejemplo n.º 2
0
        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());
        }
Ejemplo n.º 5
0
        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());
 }