Skip to content

Instantly share code, notes, and snippets.

@fbanke
Created January 1, 2021 12:51
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 fbanke/df3443d072bae4a2f1ddfaf579b2ea79 to your computer and use it in GitHub Desktop.
Save fbanke/df3443d072bae4a2f1ddfaf579b2ea79 to your computer and use it in GitHub Desktop.
using System;
using Xunit;
namespace UnitTests
{
public class MathEvaluatorTest
{
[Fact]
public void Should_GivenFiveTimesEight_GiveForty()
{
var expression = "5 * 8";
var sut = new MathEvaluator();
Assert.Equal(40, sut.Evaluate(expression));
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment