Skip to content

Commit

Permalink
partial fixed in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gleblebedev committed Jul 27, 2024
1 parent 3b72270 commit d5c8986
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions RbfxTemplate.Tests/JsonResourceTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public TestContainer(Material mat)
}

[ObjectFactory]
public class TestResource : JsonResource<TestContainer>
public partial class TestResource : JsonResource<TestContainer>
{
public TestResource(Context context) : base(context)
{
Expand All @@ -66,7 +66,7 @@ public async Task SaveSimpleResource()
res.Value = testContainer;
var fileIdentifier = new FileIdentifier("conf", "SaveJson.json");
res.SaveFile(fileIdentifier);
res.Value = default;
res.Value = new TestContainer();
res.LoadFile(fileIdentifier);
Assert.NotNull(res.Value);
Assert.Equal(testContainer.IntVector2, res.Value.IntVector2);
Expand Down
2 changes: 1 addition & 1 deletion RbfxTemplate.Tests/SimpleHeadlessApplication.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ namespace RbfxTemplate.Tests
/// <summary>
/// Test application.
/// </summary>
public class SimpleHeadlessApplication : Application
public partial class SimpleHeadlessApplication : Application
{
public SimpleHeadlessApplication(Context context) : base(context)
{
Expand Down

0 comments on commit d5c8986

Please sign in to comment.