public void TinySvgLineValidFormatTest() { string[] attributes = new string[] { "50", "50", "40", "40" }; var token = new TinySvgLine(attributes); CollectionAssert.AreEqual(attributes, token.GetParameters()); }
public void GetIDTest() { const byte expectedID = (byte)SymbolTable.Line; string[] attributes = new string[] { "50", "50", "40", "40" }; var token = new TinySvgLine(attributes); Assert.AreEqual(token.GetID(), expectedID); }
public void SetStringParametersTest() { string[] attributes = new string[] { "50", "50", "40", "40" }; var token = new TinySvgLine(attributes); string[] expectedrestult = new string[] { attributes[0], attributes[1], attributes[2], attributes[3] }; CollectionAssert.AreEqual(expectedrestult, token.GetParameters()); }
public void GetNamedParametersTest() { string[] attributes = new string[] { "50", "50", "40", "40" }; var token = new TinySvgLine(attributes); Dictionary <string, string> expectedrestult = new Dictionary <string, string> { { "x1", attributes[0] }, { "y1", attributes[1] }, { "x2", attributes[2] }, { "y2", attributes[3] } }; CollectionAssert.AreEqual(expectedrestult, token.GetNamedParameters()); }
public void TinySvgLineInvalidFormatTest() { string[] attributes = new string[] { "NOT", "VALID", "VALUES", "TEST" }; var token = new TinySvgLine(attributes); }