-
Notifications
You must be signed in to change notification settings - Fork 407
Expand file tree
/
Copy pathNumberToFlatnessExtensionsTest.g.cs
More file actions
36 lines (31 loc) · 1.38 KB
/
NumberToFlatnessExtensionsTest.g.cs
File metadata and controls
36 lines (31 loc) · 1.38 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
//------------------------------------------------------------------------------
// <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.NumberToFlatness;
using Xunit;
namespace UnitsNet.Tests
{
public class NumberToFlatnessExtensionsTests
{
[Fact]
public void NumberToIUnitsTest() =>
Assert.Equal(Flatness.FromIUnits(2), 2.IUnits);
[Fact]
public void NumberToMicrometersPerMeterTest() =>
Assert.Equal(Flatness.FromMicrometersPerMeter(2), 2.MicrometersPerMeter);
}
}