13 references to ForDecimal
Microsoft.CodeAnalysis.CSharp (1)
Utilities\ValueSetFactory.cs (1)
49
SpecialType.System_Decimal =>
ForDecimal
,
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (12)
Utilities\ValueSetTests.cs (12)
503
Assert.Same(
ForDecimal
, ForSpecialType(SpecialType.System_Decimal));
514
Assert.Equal("[-79228162514264337593543950335..-0.0000000000000000000000000001]",
ForDecimal
.Related(LessThan, 0.0m).ToString());
515
Assert.Equal("[-79228162514264337593543950335..0.0000000000000000000000000000]",
ForDecimal
.Related(LessThanOrEqual, 0.0m).ToString());
516
Assert.Equal("[0.0000000000000000000000000001..79228162514264337593543950335]",
ForDecimal
.Related(GreaterThan, 0.0m).ToString());
517
Assert.Equal("[0.0000000000000000000000000000..79228162514264337593543950335]",
ForDecimal
.Related(GreaterThanOrEqual, 0.0m).ToString());
582
Assert.False(
ForDecimal
.Related(LessThan, d).Any(Equal, d));
583
Assert.True(
ForDecimal
.Related(LessThanOrEqual, d).Any(Equal, d));
584
Assert.False(
ForDecimal
.Related(GreaterThan, d).Any(Equal, d));
585
Assert.True(
ForDecimal
.Related(GreaterThanOrEqual, d).Any(Equal, d));
597
ForFloat, ForDouble,
ForDecimal
, ForNint,
621
ForDecimal
, ForNint,
870
ForDecimal
,