-
Notifications
You must be signed in to change notification settings - Fork 412
Expand file tree
/
Copy pathNumberToHeatTransferCoefficientExtensionsTest.g.cs
More file actions
52 lines (43 loc) · 2.43 KB
/
Copy pathNumberToHeatTransferCoefficientExtensionsTest.g.cs
File metadata and controls
52 lines (43 loc) · 2.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by \generate-code.bat.
//
// Changes to this file will be lost when the code is regenerated.
// The build server regenerates the code before each build and a pre-build
// step will regenerate the code on each local build.
//
// See https://github.com/angularsen/UnitsNet/wiki/Adding-a-New-Unit for how to add or edit units.
//
// Add CustomCode\Quantities\MyQuantity.extra.cs files to add code to generated quantities.
// Add UnitDefinitions\MyQuantity.json and run generate-code.bat to generate new units or quantities.
//
// </auto-generated>
//------------------------------------------------------------------------------
// Licensed under MIT No Attribution, see LICENSE file at the root.
// Copyright 2013 Andreas Gullberg Larsen (andreas.larsen84@gmail.com). Maintained at https://github.com/angularsen/UnitsNet.
using UnitsNet.NumberExtensions.NumberToHeatTransferCoefficient;
using Xunit;
namespace UnitsNet.Tests
{
public class NumberToHeatTransferCoefficientExtensionsTests
{
[Fact]
public void NumberToBtusPerHourSquareFootDegreeFahrenheitTest() =>
Assert.Equal(HeatTransferCoefficient.FromBtusPerHourSquareFootDegreeFahrenheit(2), 2.BtusPerHourSquareFootDegreeFahrenheit);
[Fact]
public void NumberToBtusPerSecondSquareInchDegreeFahrenheitTest() =>
Assert.Equal(HeatTransferCoefficient.FromBtusPerSecondSquareInchDegreeFahrenheit(2), 2.BtusPerSecondSquareInchDegreeFahrenheit);
[Fact]
public void NumberToCaloriesPerHourSquareMeterDegreeCelsiusTest() =>
Assert.Equal(HeatTransferCoefficient.FromCaloriesPerHourSquareMeterDegreeCelsius(2), 2.CaloriesPerHourSquareMeterDegreeCelsius);
[Fact]
public void NumberToKilocaloriesPerHourSquareMeterDegreeCelsiusTest() =>
Assert.Equal(HeatTransferCoefficient.FromKilocaloriesPerHourSquareMeterDegreeCelsius(2), 2.KilocaloriesPerHourSquareMeterDegreeCelsius);
[Fact]
public void NumberToWattsPerSquareMeterCelsiusTest() =>
Assert.Equal(HeatTransferCoefficient.FromWattsPerSquareMeterCelsius(2), 2.WattsPerSquareMeterCelsius);
[Fact]
public void NumberToWattsPerSquareMeterKelvinTest() =>
Assert.Equal(HeatTransferCoefficient.FromWattsPerSquareMeterKelvin(2), 2.WattsPerSquareMeterKelvin);
}
}