Skip to content

Instantly share code, notes, and snippets.

@muditlambda
Created February 8, 2021 16:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save muditlambda/ee26ab4b576970181dad373d94bb2cb7 to your computer and use it in GitHub Desktop.
Save muditlambda/ee26ab4b576970181dad373d94bb2cb7 to your computer and use it in GitHub Desktop.
using NUnit.Framework;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Assert_Demo
{
class Assert_Demo_1
{
[Test]
public void test_comparison()
{
Int32 actual_value = 45;
// Raise an assert if the GreaterThan is not successful
Assert.That(actual_value, Is.Not.GreaterThan(30));
Console.WriteLine("Test for comparison Passed");
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment