public void Should_encode_decode_all_chars_string() { var str = new string(Enumerable.Range(0, ushort.MaxValue + 1) .Select(x => (char)x).ToArray()); var encoded = new NameProvider().PathEncode(str); var decoded = new NameProvider().PathDecode(encoded); decoded.Should().Be(str); }
public void Should_decode_path_string() { var decoded = new NameProvider().PathDecode(@"+002b+0009"); decoded.Should().Be("+\t"); }
public void Should_serialize_name() { var filename = new NameProvider().SerializeName(new LogName(sampleDate, "some-name", null)); filename.Should().Be(sampleFilename); }