Skip to content

Commit

Permalink
Add unit tests for Host Data Source
Browse files Browse the repository at this point in the history
  • Loading branch information
vulh-infragistics committed Nov 15, 2024
1 parent 30fd98d commit 3a4dfdd
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions src/Reveal.Sdk.Dom.Tests/Data/DataSources/HostDataSourceFixture.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
using Reveal.Sdk.Dom.Data;
using System;
using Xunit;

namespace Reveal.Sdk.Dom.Tests.Data.DataSources
{
public class HostDataSourceFixture
{
[Fact]
public void GetHost_ReturnSameValue_WithSetValue()
{
// Arrange
var hostDataSource = new HostDataSource();
var expectedHost = "test-host";

// Act
hostDataSource.Host = expectedHost;

// Assert
Assert.Equal(expectedHost, hostDataSource.Host);
}

[Fact]
public void GetPort_ReturnSameValue_WithSetPort()
{
// Arrange
var hostDataSource = new HostDataSource();
var expectedPort = "port";

// Act
hostDataSource.Port = expectedPort;

// Assert
Assert.Equal(expectedPort, hostDataSource.Port);
}
}
}

0 comments on commit 3a4dfdd

Please sign in to comment.