Ejemplo n.º 1
0
 public void Returns_Single_Line()
 {
     SecurityTextContainer.CreateComment("test", Environment.NewLine).Should().Be("# test");
 }
Ejemplo n.º 2
0
 public void Returns_Multiline_With_Prefix_With_Mixed_NewLine_Style()
 {
     SecurityTextContainer.CreateComment("test\r\nother line\nanother line", Environment.NewLine).Should().Be("# test\r\n# other line\r\n# another line");
 }
Ejemplo n.º 3
0
 public void Returns_Empty_For_Null_Value()
 {
     SecurityTextContainer.CreateComment(null, Environment.NewLine).Should().BeEmpty();
 }