public void Vertex_ToStringTest() { short SampleInput1 = 5; short SampleInput2 = 6; byte messageInput = 11; byte modulo = 4; Vertex vertex1 = new Vertex(SampleInput1, SampleInput2, messageInput, modulo); Assert.AreEqual("(5,6)", vertex1.ToString()); }
public void ForceSampleChange() { PrivateType pt = new PrivateType(typeof(JpegImage)); Vertex inputVertex = new Vertex(0, 1, 0, 4), expectedVertex = new Vertex(-1, 1, 0, 4); pt.InvokeStatic("_forceSampleChange", inputVertex); Assert.AreEqual(expectedVertex.ToString(), inputVertex.ToString()); }