-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
30fd98d
commit 3a4dfdd
Showing
1 changed file
with
37 additions
and
0 deletions.
There are no files selected for viewing
37 changes: 37 additions & 0 deletions
37
src/Reveal.Sdk.Dom.Tests/Data/DataSources/HostDataSourceFixture.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
} | ||
} | ||
} |