You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
publicconstintARGUMENT_VALUE=10;publicvoidExampleArgument(IReadOnlyList<int>?list){Verify.NotNull(list);//List is not nullVerify.Argument(list!.Contains(ARGUMENT_VALUE),"Nope");//List contains our value//something...}
publicconststringEQUALS_VALUE="Hello!";publicvoidExampleRange(doublevalue){Verify.Range(value,1.5,3);//something...}publicvoidExampleEquals(stringother){//Next 2 lines are the sameVerify.Equals(other,EQUALS_VALUE,"You are not friendly :(");other.VerifyEquals(EQUALS_VALUE,"I was offended");//again something...}publicstringExampleArray(string[]array,inti){//Check if the index is not out of an array lengtharray.VerifyArray(i);returnarray[i];}