-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ended up writing a lot of theoretical tests...
- Loading branch information
Showing
9 changed files
with
43 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
using System.Collections; | ||
using fennecs.storage; | ||
|
||
namespace fennecs.tests; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
namespace fennecs.tests.Conceptual; | ||
|
||
using fennecs.storage; | ||
|
||
public class ReflectionTests | ||
{ | ||
[Fact] | ||
public void MakeGenericType_is_Not_Unique() | ||
{ | ||
var t1 = typeof(Storage<>).MakeGenericType(typeof(int)); | ||
var t2 = typeof(Storage<>).MakeGenericType(typeof(int)); | ||
Assert.Equal(t1, t2); | ||
} | ||
|
||
[Fact] | ||
public void MakeGenericType_is_Same_As_Static() | ||
{ | ||
var t1 = typeof(Storage<>).MakeGenericType(typeof(int)); | ||
var t2 = typeof(Storage<int>); | ||
Assert.Equal(t1, t2); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
namespace fennecs.tests; | ||
using fennecs.storage; | ||
|
||
namespace fennecs.tests; | ||
|
||
public class StorageTests | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
using System.Buffers; | ||
using System.Diagnostics; | ||
using fennecs.pools; | ||
using fennecs.storage; | ||
|
||
namespace fennecs; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters