Skip to content

Instantly share code, notes, and snippets.

@bjoerntx
Created January 2, 2024 13:39
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 bjoerntx/c4903e2e61e74b19c6d7798acc2484dc to your computer and use it in GitHub Desktop.
Save bjoerntx/c4903e2e61e74b19c6d7798acc2484dc to your computer and use it in GitHub Desktop.
namespace MyUnitTest
{
public class Tests
{
[SetUp]
public void Setup()
{
}
[Test]
public void Test1()
{
var html = MyClassLibrary.Class1.GetHtml();
// if html contains "Hello, World!" the test passes
Assert.IsTrue(html.Contains("Hello, World!"));
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment