//[ExpectedException(typeof(SparkDeviceException),"Variable not found")] public void GivenInvalidVariableExpectErrorVariableNotFound() { try{ SparkVariableResult result = client.GetVariable("thisdoesnotexist"); } catch (SparkDeviceException spex) { Assert.AreEqual("Variable not found", spex.Message); } }
public void GivenClientWhenGetVar0Expect0() { SparkVariableResult result = client.GetVariable("var0"); Assert.AreEqual("0", result.Result); }
public SparkDeviceException(string message, SparkVariableResult result) : base(message) { this.VariableResult = result; }