mirror of
https://github.com/AlexMacocian/WpfExtended.git
synced 2026-07-15 14:59:30 +00:00
7e9c3c5f64
* Create unit tests Rearrange test project structure Implement ICVLoggerProvider interface for mocking/extensibility * Fix UTs project path
27 lines
648 B
C#
27 lines
648 B
C#
using FluentAssertions;
|
|
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
|
using System.Windows.Extensions;
|
|
|
|
namespace WpfExtended.Tests.Configuration
|
|
{
|
|
[TestClass]
|
|
public class DefaultOptionsManagerTests
|
|
{
|
|
private readonly DefaultOptionsManager optionsManager = new();
|
|
|
|
[TestMethod]
|
|
public void GetOptions_ReturnsDefault()
|
|
{
|
|
var options = this.optionsManager.GetOptions<string>();
|
|
|
|
options.Should().BeNull();
|
|
}
|
|
|
|
[TestMethod]
|
|
public void UpdateOptions_Succeeds()
|
|
{
|
|
this.optionsManager.UpdateOptions(string.Empty);
|
|
}
|
|
}
|
|
}
|