Пример #1
0
 //[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);
     }
 }
Пример #2
0
        public void GivenClientWhenGetVar0Expect0()
        {
            SparkVariableResult result = client.GetVariable("var0");

            Assert.AreEqual("0", result.Result);
        }
Пример #3
0
 public SparkDeviceException(string message, SparkVariableResult result) : base(message)
 {
     this.VariableResult = result;
 }