Files
WpfExtended/WpfExtended.SourceGeneration.Tests/Class1.cs
T
Alexandru Macocian 668d54d5c9 Implemented HttpClientResolver and LoggerResolver.
Refactored application statup flow to include HttpClientResolver as optional and SetupLoggerFactory to setup logging.
2021-05-13 18:37:32 +02:00

25 lines
668 B
C#

using FluentAssertions;
using System.Windows.Controls;
using System.Windows.Extensions;
using System.Windows.Media.Effects;
namespace WpfExtended.SourceGeneration.Tests
{
internal partial class Class1 : UserControl
{
[GenerateDependencyProperty]
public int someF;
[GenerateDependencyProperty(InitialValue = "This has a value")]
public string someValue;
[GenerateDependencyProperty]
public Effect effect;
public void TestValues()
{
this.SomeF.Should().Be(0);
this.SomeValue.Should().Be("This has a value");
this.Effect.Should().BeNull();
}
}
}