player.Play();
}
- [Theory]
+ [ConditionalTheory(typeof(PlatformDetection), nameof(PlatformDetection.IsSoundPlaySupported))]
[MemberData(nameof(Play_String_TestData))]
[OuterLoop]
public void Load_Stream_Success(string sourceLocation)
}
}
- [Fact]
+ [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsSoundPlaySupported))]
[OuterLoop]
public void Play_NullStream_Success()
{
Assert.Throws<InvalidOperationException>(() => soundPlayer.Play());
}
- [Theory]
+ [ConditionalTheory(typeof(PlatformDetection), nameof(PlatformDetection.IsSoundPlaySupported))]
[MemberData(nameof(Play_InvalidString_TestData))]
public void Play_InvalidStream_ThrowsInvalidOperationException(string sourceLocation)
{
}
}
- [Fact]
+ [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsSoundPlaySupported))]
[OuterLoop]
public void PlayLooping_NullStream_Success()
{
player.PlayLooping();
}
- [Fact]
+ [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsSoundPlaySupported))]
[OuterLoop]
public void PlaySync_NullStream_Success()
{
Assert.Null(ea.UserState);
}
- [Theory]
+ [ConditionalTheory(typeof(PlatformDetection), nameof(PlatformDetection.IsSoundPlaySupported))]
[MemberData(nameof(Play_String_TestData))]
[OuterLoop]
public async Task CancelDuringLoad_ThenPlay_Success(string sourceLocation)