public void VariableConstructorTest_Color() { string name = "foo"; Stream file = new MemoryStream(Encoding.ASCII.GetBytes("color 1.0 1.0 1.0 1.0")); var target = new Variable(name, file); Assert.AreEqual(new Color4(Color.White), target.Data); }
public void VariableConstructorTest_BoolT() { string name = "foo"; Stream file = new MemoryStream(Encoding.ASCII.GetBytes("bool true")); var target = new Variable(name, file); Assert.AreEqual(true, target.Data); }
public void VariableConstructorTest1() { string name = string.Empty; // TODO: Initialize to an appropriate value VariableType type = new VariableType(); // TODO: Initialize to an appropriate value object value = null; // TODO: Initialize to an appropriate value Variable target = new Variable(name, type, value); Assert.Inconclusive("TODO: Implement code to verify target"); }
public void VariableConstructorTest_Number() { string name = "foo"; Stream file = new MemoryStream(Encoding.ASCII.GetBytes("number 45324")); var target = new Variable(name, file); Assert.AreEqual(45324L, target.Data); }
public void VariableConstructorTest_float() { string name = "foo"; Stream file = new MemoryStream(Encoding.ASCII.GetBytes("float 47.0")); var target = new Variable(name, file); Assert.AreEqual(47.0f, target.Data); }
public void VariableConstructorTest_Vector() { string name = "foo"; Stream file = new MemoryStream(Encoding.ASCII.GetBytes("vector 3 4.0 5.0")); var target = new Variable(name, file); Assert.AreEqual(new Vector3(3,4,5), target.Data); }
public void VariableConstructorTest_String() { string name = "foo"; Stream file = new MemoryStream(Encoding.ASCII.GetBytes("string \"foo bar fizz buzz\"")); var target = new Variable(name, file); Assert.AreEqual("foo bar fizz buzz", target.Data); }