Add bunit & Newtonsoft.Json refs, add (commented) test stubs
Added bunit and Newtonsoft.Json package references to the test project for Blazor component and JSON testing support. Introduced two new test files, GridPartnerBaseTests.cs and GridPartnerRazorTests.cs, containing commented-out MSTest and bUnit test stubs for GridPartnerBase and GridPartner components. No active tests are enabled yet.
This commit is contained in:
parent
62e8294448
commit
ba05b5f37e
|
|
@ -1,4 +1,4 @@
|
|||
<Project Sdk="MSTest.Sdk/4.0.2">
|
||||
<Project Sdk="MSTest.Sdk/4.0.2">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net10.0</TargetFramework>
|
||||
|
|
@ -15,6 +15,7 @@
|
|||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="bunit" Version="2.2.2" />
|
||||
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
|
||||
</ItemGroup>
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,22 @@
|
|||
using FruitBankHybrid.Shared.Components.Grids.Partners;
|
||||
using FruitBank.Common.SignalRs;
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
|
||||
namespace FruitBankHybrid.Shared.Tests
|
||||
{
|
||||
//[TestClass]
|
||||
//public class GridPartnerBaseTests
|
||||
//{
|
||||
// [TestMethod]
|
||||
// public void Constructor_InitializesMessageTags()
|
||||
// {
|
||||
// // Arrange & Act
|
||||
// var grid = new GridPartnerBase();
|
||||
|
||||
// // Assert
|
||||
// Assert.AreEqual(SignalRTags.GetPartners, grid.GetAllMessageTag);
|
||||
// Assert.AreEqual(SignalRTags.AddPartner, grid.AddMessageTag);
|
||||
// Assert.AreEqual(SignalRTags.UpdatePartner, grid.UpdateMessageTag);
|
||||
// }
|
||||
//}
|
||||
}
|
||||
|
|
@ -0,0 +1,20 @@
|
|||
using Bunit;
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
using FruitBankHybrid.Shared.Components.Grids.Partners;
|
||||
|
||||
namespace FruitBankHybrid.Shared.Tests
|
||||
{
|
||||
//[TestClass]
|
||||
//public class GridPartnerRazorTests : Bunit.TestContext
|
||||
//{
|
||||
// [TestMethod]
|
||||
// public void GridPartnerRendersWithoutError()
|
||||
// {
|
||||
// // Act
|
||||
// var cut = RenderComponent<GridPartner>();
|
||||
|
||||
// // Assert
|
||||
// Assert.IsNotNull(cut);
|
||||
// }
|
||||
//}
|
||||
}
|
||||
Loading…
Reference in New Issue