public void CanEncodeSingleLineNumber() { var source = new SourceLineNumber("a.wxs", 1); string encoded = source.GetEncoded(); Assert.Equal("a.wxs*1", encoded); }
public void CanEncodeMultipleFiles() { var parent = new SourceLineNumber("parent.wxs"); var source = new SourceLineNumber("included.wxi") { Parent = parent }; string encoded = source.GetEncoded(); Assert.Equal("included.wxi|parent.wxs", encoded); }
public void CanEncodeMultipleLineNumber() { var parent = new SourceLineNumber("a.wxs", 6); var source = new SourceLineNumber("b.wxi", 10) { Parent = parent }; string encoded = source.GetEncoded(); Assert.Equal("b.wxi*10|a.wxs*6", encoded); }