NUnit.Framework.Assert.IsNotInstanceOf(object, string)

Here are the examples of the csharp api class NUnit.Framework.Assert.IsNotInstanceOf(object, string) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

4 Examples 7

1. Example

View license
public static void IsNotInstanceOf<TWrong>(this object value, string message = "")
        {
            Assert.IsNotInstanceOf<TWrong>(value, message);
        }

2. Example

View license
public static void IsNotInstanceOf<TWrong>(this object value, string message = "")
        {
            Assert.IsNotInstanceOf<TWrong>(value, message);
        }

3. Example

Project: yacq
Source File: ChainingAssertion.NUnit.cs
View license
public static void IsNotInstanceOf<TWrong>(this object value, string message = "")
        {
            Assert.IsNotInstanceOf<TWrong>(value, message);
        }

4. Example

Project: Portable.Xaml
Source File: XamlTypeTest.cs
View license
[Test]
		public void NullableTypeShouldUseProperValueSerializer()
		{
			var val = DateTime.Today;
			var xt = sctx.GetXamlType(typeof(DateTime?));
			Assert.IsTrue(xt.IsNullable, "#1");
			Assert.AreEqual(xt.BaseType, sctx.GetXamlType(typeof(ValueType)), "#2");
			Assert.IsNull(xt.ValueSerializer, "#3");
			Assert.IsNotInstanceOf<System.ComponentModel.DateTimeConverter>(xt.TypeConverter.ConverterInstance, "#4");
#if PCL
			Assert.IsInstanceOf<global::Portable.Xaml.ComponentModel.DateTimeConverter>(xt.TypeConverter.ConverterInstance, "#4");
#endif
		}