mirror of
https://github.com/AlexMacocian/SystemExtensions.git
synced 2026-07-16 22:39:29 +00:00
27 lines
668 B
C#
27 lines
668 B
C#
using FluentAssertions;
|
|
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
|
using System.Configuration;
|
|
|
|
namespace SystemExtensions.DependencyInjection.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);
|
|
}
|
|
}
|
|
}
|