Skip to content

Commit

Permalink
Backend.Tests: move SetUp to Deserialization too
Browse files Browse the repository at this point in the history
  • Loading branch information
knocte committed Jan 3, 2024
1 parent 8152d44 commit 52015f5
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
4 changes: 4 additions & 0 deletions src/GWallet.Backend.Tests/Deserialization.fs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ open GWallet.Backend.UtxoCoin
[<TestFixture>]
type Deserialization() =

[<SetUp>]
member __.``Versioning works``() =
MarshallingData.AssertAssemblyVersion()

[<Test>]
member __.``deserialize cache does not fail``() =

Expand Down
8 changes: 8 additions & 0 deletions src/GWallet.Backend.Tests/MarshallingData.fs
Original file line number Diff line number Diff line change
Expand Up @@ -325,3 +325,11 @@ module MarshallingData =

let UnsignedEtherTransactionExampleInJson =
ReadEmbeddedResource "unsignedAndFormattedEtherTransaction.json"

let AssertAssemblyVersion() =
Assert.That(
VersionHelper.CURRENT_VERSION,
Is.Not.EqualTo "1.0.0.0",
"Proper version was somehow not properly assigned as assembly version"
)

7 changes: 1 addition & 6 deletions src/GWallet.Backend.Tests/Serialization.fs
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,7 @@ type Serialization() =

[<SetUp>]
member __.``Versioning works``() =
Assert.That(
VersionHelper.CURRENT_VERSION,
Is.Not.EqualTo "1.0.0.0",
"Proper version was somehow not properly assigned as assembly version"
)

MarshallingData.AssertAssemblyVersion()

[<Test>]
member __.``basic caching export does not fail``() =
Expand Down

0 comments on commit 52015f5

Please sign in to comment.