mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2026-10-18 11:55:07 +00:00
Added F# starter solution based on .NET Core
This commit is contained in:
1 parent
a0a860d0fe
commit
7ce7df7c7e
8 files changed
+588
No files matched your search
@@ -0,0 +1,19 @@
|
||||
module GildedRose.ApprovalTests
|
||||
|
||||
open System
|
||||
open Xunit
|
||||
open System.Text
|
||||
open System.IO
|
||||
|
||||
[<Fact>]
|
||||
let ``Thirty day report is correct`` () =
|
||||
let expected = File.ReadAllText "GildedRoseTest.ApprovalTest.ThirtyDays.received.txt"
|
||||
|
||||
let fakeoutput = new StringBuilder()
|
||||
Console.SetOut(new StringWriter(fakeoutput))
|
||||
Console.SetIn(new StringReader("a\n"))
|
||||
|
||||
GildedRose.Program.main [||] |> ignore
|
||||
let actual = fakeoutput.ToString()
|
||||
|
||||
Assert.Equal(expected, actual)
|
||||
Reference in new issue
Block a user