2020-03-24 19:08:37 +01:00
|
|
|
// Copyright (c) Microsoft Corporation.
|
2018-02-13 18:23:53 +01:00
|
|
|
// Licensed under the MIT License.
|
2018-12-18 17:11:21 +01:00
|
|
|
|
2015-06-11 23:40:28 +02:00
|
|
|
using System;
|
|
|
|
using System.Management.Automation;
|
2018-12-18 17:11:21 +01:00
|
|
|
using Xunit;
|
2015-06-11 23:40:28 +02:00
|
|
|
|
2018-01-03 21:43:28 +01:00
|
|
|
namespace PSTests.Parallel
|
2015-06-11 23:40:28 +02:00
|
|
|
{
|
|
|
|
public static class PSTypeExtensionsTests
|
|
|
|
{
|
2015-07-21 00:31:03 +02:00
|
|
|
[Fact]
|
2017-11-30 23:44:41 +01:00
|
|
|
public static void TestIsNumeric()
|
2015-06-11 23:40:28 +02:00
|
|
|
{
|
2017-11-30 23:44:41 +01:00
|
|
|
Assert.True(PSTypeExtensions.IsNumeric(42.GetType()));
|
2015-06-11 23:40:28 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|