Tests: Add coverage tests for ScriptsBundler and StylesBundler.
This commit is contained in:
21
VAR.WebFormsCore.Tests/Code/ScriptsBundlerTests.cs
Normal file
21
VAR.WebFormsCore.Tests/Code/ScriptsBundlerTests.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
using Xunit;
|
||||
using VAR.WebFormsCore.Code;
|
||||
using VAR.WebFormsCore.Tests.Fakes;
|
||||
|
||||
namespace VAR.WebFormsCore.Tests.Code;
|
||||
|
||||
public class ScriptsBundlerTests
|
||||
{
|
||||
[Fact]
|
||||
public void ProcessRequest__Base__IntrinsicScripts()
|
||||
{
|
||||
FakeWebContext fakeWebContext = new();
|
||||
ScriptsBundler scriptsBundler = new();
|
||||
|
||||
scriptsBundler.ProcessRequest(fakeWebContext);
|
||||
|
||||
Assert.Single(fakeWebContext.FakeWritePackages);
|
||||
|
||||
// TODO: Verify contents of intrinsic scripts
|
||||
}
|
||||
}
|
||||
21
VAR.WebFormsCore.Tests/Code/StylesBundlerTests.cs
Normal file
21
VAR.WebFormsCore.Tests/Code/StylesBundlerTests.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
using Xunit;
|
||||
using VAR.WebFormsCore.Code;
|
||||
using VAR.WebFormsCore.Tests.Fakes;
|
||||
|
||||
namespace VAR.WebFormsCore.Tests.Code;
|
||||
|
||||
public class StylesBundlerTests
|
||||
{
|
||||
[Fact]
|
||||
public void ProcessRequest__Base__IntrinsicStyles()
|
||||
{
|
||||
FakeWebContext fakeWebContext = new();
|
||||
StylesBundler stylesBundler = new();
|
||||
|
||||
stylesBundler.ProcessRequest(fakeWebContext);
|
||||
|
||||
Assert.Single(fakeWebContext.FakeWritePackages);
|
||||
|
||||
// TODO: Verify contents of intrinsic styles
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user