public void ParseSize() { GraphvizSize size = SvgHtmlWrapper.ParseSize(SampleSvg); Assert.AreEqual(new GraphvizSize(300, 200), size); // Size not found => fallback size = SvgHtmlWrapper.ParseSize(MissingSizeSampleSvg); Assert.AreEqual(new GraphvizSize(400, 400), size); }
public void ParseSize_Throws() { // ReSharper disable once ReturnValueOfPureMethodIsNotUsed // ReSharper disable once AssignNullToNotNullAttribute Assert.Throws <ArgumentNullException>(() => SvgHtmlWrapper.ParseSize(null)); }