Answers for "assert throw"

C#
0

assert throw

[TestMethod()]
public void ExceptionTest()
{
    String testStr = null;
    MyAssert.Throws<NullReferenceException>(() => testStr.ToUpper());
}
Posted by: Guest on May-02-2022

C# Answers by Framework

Browse Popular Code Answers by Language