Skip to content

Commit

Permalink
Tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Brano5 committed Jun 12, 2024
1 parent ae5612a commit 33cc0c6
Show file tree
Hide file tree
Showing 8 changed files with 50 additions and 29 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<div name="testingProgram-testRenderInnerOverridedStruct" b-gswuladdww>
<div name="testingProgram-testRenderInnerOverridedStruct-testInteger" class="w-100 form-group mb-2">
<label for:ignore="testingProgram.testRenderInnerOverridedStruct.testInteger_3b4ebb5d-d903-4f6e-9c71-b76767c52365">Test Integer</label>
<input id:ignore="testingProgram.testRenderInnerOverridedStruct.testInteger_3b4ebb5d-d903-4f6e-9c71-b76767c52365" readonly="readonly" class="w-100 form-control " style="background-color:transparent" type="text" step="any" value="0" data-bs-toggle="tooltip" data-bs-placement="top" data-bs-custom-class="custom-tooltip" data-bs-title="testingProgram.testRenderInnerOverridedStruct.Test Integer" />

<div class="invalid-feedback"></div>
</div><div name="testingProgram-testRenderInnerOverridedStruct-testString" class="w-100 form-group mb-2">
<label for:ignore="testingProgram.testRenderInnerOverridedStruct.testString_85ba0aca-0826-42fe-9359-ed4f0e630899">Test String</label>
<input id:ignore="testingProgram.testRenderInnerOverridedStruct.testString_85ba0aca-0826-42fe-9359-ed4f0e630899" readonly="readonly" class="w-100 form-control " style="background-color:transparent" type="text" step="any" value="" data-bs-toggle="tooltip" data-bs-placement="top" data-bs-custom-class="custom-tooltip" data-bs-title="testingProgram.testRenderInnerOverridedStruct.Test String" />

<div class="invalid-feedback"></div>
</div>
</div>
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<div name="testingProgram-testRenderOverridedSimpleStruct" b-gswuladdww>
<div name="testingProgram-testRenderOverridedSimpleStruct-testInteger" class="w-100 form-group mb-2">
<label for:ignore="testingProgram.testRenderOverridedSimpleStruct.testInteger_01362a1b-a1c8-4457-9034-8c13c14efef7">Test Integer</label>
<input id:ignore="testingProgram.testRenderOverridedSimpleStruct.testInteger_01362a1b-a1c8-4457-9034-8c13c14efef7" readonly="readonly" class="w-100 form-control " style="background-color:transparent" type="text" step="any" value="0" data-bs-toggle="tooltip" data-bs-placement="top" data-bs-custom-class="custom-tooltip" data-bs-title="testingProgram.testRenderOverridedSimpleStruct.Test Integer" />

<div class="invalid-feedback"></div>
</div><div name="testingProgram-testRenderOverridedSimpleStruct-testString" class="w-100 form-group mb-2">
<label for:ignore="testingProgram.testRenderOverridedSimpleStruct.testString_53ce35dc-d0f3-41e1-9038-7f8000f58d6a">Test String</label>
<input id:ignore="testingProgram.testRenderOverridedSimpleStruct.testString_53ce35dc-d0f3-41e1-9038-7f8000f58d6a" readonly="readonly" class="w-100 form-control " style="background-color:transparent" type="text" step="any" value="" data-bs-toggle="tooltip" data-bs-placement="top" data-bs-custom-class="custom-tooltip" data-bs-title="testingProgram.testRenderOverridedSimpleStruct.Test String" />

<div class="invalid-feedback"></div>
</div>
</div>
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<div name="testingProgram-testRenderOverridedTag" b-gswuladdww>
<div name="testingProgram-testRenderOverridedTag" class="w-100 form-group mb-2">
<label for:ignore="testingProgram.testRenderOverridedTag_97c217f7-ac06-4d99-83b6-e7fede582d01">testRenderOverridedTag</label>
<input id:ignore="testingProgram.testRenderOverridedTag_97c217f7-ac06-4d99-83b6-e7fede582d01" readonly="readonly" class="w-100 form-control " style="background-color:transparent" type="text" step="any" value="0" data-bs-toggle="tooltip" data-bs-placement="top" data-bs-custom-class="custom-tooltip" data-bs-title="testingProgram.testRenderOverridedTag" />

<div class="invalid-feedback"></div>
</div>
</div>

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -522,15 +522,21 @@ public void Render_stTestLayouts_Border_UniformGrid_Successfull()
//}

[Fact]
public void Render_stTestRenderTemplateOverrideAttributeStruct_Success()
public void Render_stTestRenderOverridedSimpleStruct_Success()
{
Compare("stTestRenderTemplateOverrideStruct.html", _fixture.Connector.testingProgram.testRenderTemplateOverrideStruct, "Display");
Compare("stTestRenderOverridedSimpleStruct.html", _fixture.Connector.testingProgram.testRenderOverridedSimpleStruct, "Display");
}

[Fact]
public void Render_stTestRenderTemplateOverrideAttributeTag_Success()
public void Render_stTestRenderInnerOverridedStruct_Success()
{
Compare("stTestRenderTemplateOverrideTag.html", _fixture.Connector.testingProgram.testRenderTemplateOverrideTag, "Display");
Compare("stTestRenderInnerOverridedStruct.html", _fixture.Connector.testingProgram.testRenderInnerOverridedStruct, "Display");
}

[Fact]
public void Render_stTestRenderOverridedTag_Success()
{
Compare("stTestRenderOverridedTag.html", _fixture.Connector.testingProgram.testRenderOverridedTag, "Display");
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ CLASS MAIN
{#ix-attr:[RenderTemplateOverride("ixBlazor.App.Custom.MySimplePrimitiveStruct")]}
OverridedSimpleStruct : stSimplePrimitive;

InnerOverridedSimpleStruct : stRenderTemplateOverride;
InnerOverridedStruct : stRenderTemplateOverride;

{#ix-attr:[RenderTemplateOverride("ixBlazor.App.Custom.MySimplePrimitiveTag")]}
OverridedSimpleTag : WORD;
OverridedTag : WORD;

END_VAR

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,12 @@ CLASS testingProgram
testLayouts : stTestLayouts;

{#ix-attr:[RenderTemplateOverride("ixBlazor.App.Custom.MySimplePrimitiveStruct")]}
testRenderTemplateOverrideStruct : stSimplePrimitive;
testRenderOverridedSimpleStruct : stSimplePrimitive;

testRenderInnerOverridedStruct : stRenderTemplateOverride;

{#ix-attr:[RenderTemplateOverride("ixBlazor.App.Custom.MySimplePrimitiveTag")]}
testRenderTemplateOverrideTag : WORD;
testRenderOverridedTag : WORD;
END_VAR

END_CLASS

0 comments on commit 33cc0c6

Please sign in to comment.