mirror of
https://github.com/PrismLibrary/Prism.git
synced 2026-10-28 21:07:24 +08:00
25 lines
520 B
C#
25 lines
520 B
C#
using System;
|
|
using Prism.Events;
|
|
using Xunit;
|
|
|
|
namespace Prism.Tests.Events
|
|
{
|
|
public class DataEventArgsFixture
|
|
{
|
|
[Fact]
|
|
public void CanPassData()
|
|
{
|
|
DataEventArgs<int> e = new DataEventArgs<int>(32);
|
|
Assert.Equal(32, e.Value);
|
|
}
|
|
|
|
[Fact]
|
|
public void IsEventArgs()
|
|
{
|
|
DataEventArgs<string> dea = new DataEventArgs<string>("");
|
|
EventArgs ea = dea as EventArgs;
|
|
Assert.NotNull(ea);
|
|
}
|
|
}
|
|
}
|