Assert.IsNotNull C# (CSharp) Method

IsNotNull() public static method

public static IsNotNull ( object value, string msg ) : void
value object
msg string
return void
	public static void IsNotNull (object value, string msg)
	{
		if (value == null)
			throw new Exception (msg);
	}

Usage Example

Ejemplo n.º 1
0
 public void SigparseNoArg()
 {
     sp.Parse("void zzz()");
     Assert.IsNotNull(sp.Signature.Arguments);
     Assert.AreEqual(0, sp.Signature.Arguments.Length);
 }
All Usage Examples Of Assert::IsNotNull