Skip to content

Instantly share code, notes, and snippets.

@JayBazuzi
Last active January 16, 2023 20:24
Show Gist options
  • Save JayBazuzi/41df68fce6c224891471705ef8d1091b to your computer and use it in GitHub Desktop.
Save JayBazuzi/41df68fce6c224891471705ef8d1091b to your computer and use it in GitHub Desktop.
using NUnit.Framework;
public class Hiker
{
[TestFixture]
public class Tests
{
[Test]
public void life_the_universe_and_everything()
{
Assert.AreEqual(42, Hiker.Answer());
}
}
public static int Answer()
{
return 6 * 9;
}
}
public partial class Hiker
{
public static int Answer()
{
return 6 * 9;
}
}
using NUnit.Framework;
public partial class Hiker
{
[TestFixture]
public class Tests
{
[Test]
public void life_the_universe_and_everything()
{
Assert.AreEqual(42, Hiker.Answer());
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment