public void TestDriversOnOutNotOpenedGoesInException() { Out123 handle = new Out123(); Assert.That(() => handle.Drivers().ToArray(), Throws.TypeOf <Out123.ErrorException>()); // Misleading exception. The call goes in error but the error message returned is "OK No Problem" }
public void TestDriversOK() { Out123 handle = new Out123(); Assert.That(handle.Drivers().ToArray(), Has.Length.GreaterThan(0)); /* * try { * } catch (Out123.ErrorException e) { * //Console.WriteLine(handle.LastError()); * //Console.WriteLine("CURRENT: " + e); * Assert.Fail(); * } */ }