public void TestGetFormatOnNotOpenedOutGoesInException() { Out123 handle = new Out123(); Assert.That(() => handle.GetFormat(), Throws.TypeOf <Out123.ErrorException>()); }