Skip to content

Instantly share code, notes, and snippets.

@fbanke

fbanke/MathEvaluatorTest.cs Secret

Created Jan 1, 2021
Embed
What would you like to do?
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