// This file was auto-generated based on version 1.0.0 of the canonical data. using Xunit; using System; public class WordyTest { [Fact] public void Addition() { Assert.Equal(2, Wordy.Answer("What is 1 plus 1?")); } [Fact(Skip = "Remove to run test")] public void More_addition() { Assert.Equal(55, Wordy.Answer("What is 53 plus 2?")); } [Fact(Skip = "Remove to run test")] public void Addition_with_negative_numbers() { Assert.Equal(-11, Wordy.Answer("What is -1 plus -10?")); } [Fact(Skip = "Remove to run test")] public void Large_addition() { Assert.Equal(45801, Wordy.Answer("What is 123 plus 45678?")); } [Fact(Skip = "Remove to run test")] public void Subtraction() { Assert.Equal(16, Wordy.Answer("What is 4 minus -12?")); } [Fact(Skip = "Remove to run test")] public void Multiplication() { Assert.Equal(-75, Wordy.Answer("What is -3 multiplied by 25?")); } [Fact(Skip = "Remove to run test")] public void Division() { Assert.Equal(-11, Wordy.Answer("What is 33 divided by -3?")); } [Fact(Skip = "Remove to run test")] public void Multiple_additions() { Assert.Equal(3, Wordy.Answer("What is 1 plus 1 plus 1?")); } [Fact(Skip = "Remove to run test")] public void Addition_and_subtraction() { Assert.Equal(8, Wordy.Answer("What is 1 plus 5 minus -2?")); } [Fact(Skip = "Remove to run test")] public void Multiple_subtraction() { Assert.Equal(3, Wordy.Answer("What is 20 minus 4 minus 13?")); } [Fact(Skip = "Remove to run test")] public void Subtraction_then_addition() { Assert.Equal(14, Wordy.Answer("What is 17 minus 6 plus 3?")); } [Fact(Skip = "Remove to run test")] public void Multiple_multiplication() { Assert.Equal(-12, Wordy.Answer("What is 2 multiplied by -2 multiplied by 3?")); } [Fact(Skip = "Remove to run test")] public void Addition_and_multiplication() { Assert.Equal(-8, Wordy.Answer("What is -3 plus 7 multiplied by -2?")); } [Fact(Skip = "Remove to run test")] public void Multiple_division() { Assert.Equal(2, Wordy.Answer("What is -12 divided by 2 divided by -3?")); } [Fact(Skip = "Remove to run test")] public void Unknown_operation() { Assert.Throws(() => Wordy.Answer("What is 52 cubed?")); } [Fact(Skip = "Remove to run test")] public void Non_math_question() { Assert.Throws(() => Wordy.Answer("Who is the President of the United States?")); } }