Example #1
0
 public void Returns_Single_Line()
 {
     SecurityTextContainer.CreateComment("test", Environment.NewLine).Should().Be("# test");
 }
Example #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");
 }
Example #3
0
 public void Returns_Empty_For_Null_Value()
 {
     SecurityTextContainer.CreateComment(null, Environment.NewLine).Should().BeEmpty();
 }