Assert.IsNotNull C# (CSharp) Méthode

IsNotNull() public static méthode

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

Usage Example

Exemple #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