public void CodeWriterWritesCRefAttribute() { var sampleModelTemplate = new SampleModel(); var sampleViewModel = new SampleViewModel(); sampleModelTemplate.Model = sampleViewModel; var output = sampleModelTemplate.ToString(); Assert.True(output.Contains("/// <exception cref=\"CloudException\">")); Assert.True(output.Contains("/// <exception cref=\"ArgumentNullException\">")); }
public void CodeWriterWrapsComments() { var sampleModelTemplate = new SampleModel(); var sampleViewModel = new SampleViewModel(); sampleModelTemplate.Model = sampleViewModel; var output = sampleModelTemplate.ToString(); Assert.True(output.ContainsMultiline(@"/// Deserialize current type to Json object because today is Friday /// and there is a sun outside the window.")); }