Co-authored-by: Smaug123 <3138005+Smaug123@users.noreply.github.com> Reviewed-on: #9
21 lines
433 B
Forth
21 lines
433 B
Forth
namespace AnkiStatic.Test
|
|
|
|
open NUnit.Framework
|
|
open AnkiStatic
|
|
open FsUnitTyped
|
|
|
|
[<TestFixture>]
|
|
module TestJson =
|
|
|
|
type private Dummy = class end
|
|
|
|
[<Test>]
|
|
let ``Can read example`` () =
|
|
let assembly = typeof<Dummy>.Assembly
|
|
let json = Utils.readResource assembly "example1.json"
|
|
|
|
let collection, notes =
|
|
JsonCollection.deserialiseString json |> JsonCollection.toInternal
|
|
|
|
()
|