Skip to content

Instantly share code, notes, and snippets.

@muditlambda
Created February 8, 2021 16:55
Show Gist options
  • Save muditlambda/a294e044ff1d93fbb0de873ed760f769 to your computer and use it in GitHub Desktop.
Save muditlambda/a294e044ff1d93fbb0de873ed760f769 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 = 25;
// Raise an assert if the LessThan is not successful
Assert.That(actual_value, Is.LessThan(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