public void ShouldCheckInstanceOfType() { Should.Throw<ArgumentNullException>(() => TestingExtensions.ShouldBeInstanceOfType<string>(null)); "string".ShouldBeInstanceOfType<string>(); Should.Throw<AssertionException>(() => DateTime.Now.ShouldBeInstanceOfType<string>()); var childType = new ApplicationException(); childType.ShouldBeInstanceOfType<Exception>(); }