NUnit.Framework.Assert.LessOrEqual(float, float, string)

Here are the examples of the csharp api class NUnit.Framework.Assert.LessOrEqual(float, float, string) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

17 Examples 7

1. Example

View license
public void layerHeightLessThanNozzleDiameter(PrinterSettings printerSettings, PrinterSettingsLayer layer, string sourceFile)
		{
			string layerHeight;
			if (!layer.TryGetValue(SettingsKey.layer_height, out layerHeight))
			{
				return;
			}

			float convertedLayerHeight = float.Parse(layerHeight);

			string nozzleDiameter = printerSettings.GetValue(SettingsKey.nozzle_diameter);
			float convertedNozzleDiameterValue = float.Parse(nozzleDiameter);

			Assert.LessOrEqual(convertedLayerHeight, convertedNozzleDiameterValue, "Unexpected layerHeightLessThanNozzleDiameter value: " + sourceFile);
		}

2. Example

View license
public void firstLayerExtrusionWidthAcceptableValue(PrinterSettings printerSettings, PrinterSettingsLayer layer, string sourceFile)
		{
			string firstLayerExtrusionWidth;
			if (!layer.TryGetValue(SettingsKey.first_layer_extrusion_width, out firstLayerExtrusionWidth))
			{
				return;
			}

			float convertedFirstLayerExtrusionWidth;

			string nozzleDiameter = printerSettings.GetValue(SettingsKey.nozzle_diameter);
			float acceptableValue = float.Parse(nozzleDiameter) * 4;

			if (firstLayerExtrusionWidth.Contains("%"))
			{
				string reformatFirstLayerExtrusionWidth = firstLayerExtrusionWidth.Replace("%", " ");
				convertedFirstLayerExtrusionWidth = float.Parse(reformatFirstLayerExtrusionWidth) / 100;
			}
			else
			{
				convertedFirstLayerExtrusionWidth = float.Parse(firstLayerExtrusionWidth);
			}

			Assert.LessOrEqual(convertedFirstLayerExtrusionWidth, acceptableValue, "Unexpected firstLayerExtrusionWidthAcceptableValue value: " + sourceFile);
		}

3. Example

View license
public void firstLayerHeightLessThanNozzleDiameter(PrinterSettings printerSettings, PrinterSettingsLayer layer, string sourceFile)
		{
			string firstLayerHeight;
			
			if (!layer.TryGetValue(SettingsKey.first_layer_height, out firstLayerHeight))
			{
				return;
			}

			float convertedFirstLayerHeightValue;

			if (firstLayerHeight.Contains("%"))
			{
				string reFormatLayerHeight = firstLayerHeight.Replace("%", " ");
				convertedFirstLayerHeightValue = float.Parse(reFormatLayerHeight) / 100;
			}
			else
			{
				convertedFirstLayerHeightValue = float.Parse(firstLayerHeight);
			}

			string nozzleDiameter = printerSettings.GetValue(SettingsKey.nozzle_diameter);

			Assert.LessOrEqual(convertedFirstLayerHeightValue, float.Parse(nozzleDiameter), "Unexpected firstLayerHeightLessThanNozzleDiameter value: " + sourceFile);
		}

4. Example

Project: ContinuousTests
Source File: LessEqualFixture.cs
View license
[Test]
		public void MixedTypes()
		{	
			Assert.LessOrEqual( 5, 8L, "int to long");
			Assert.LessO/n ..... /n //View Source file for more details /n }

5. Example

Project: AutoTest.Net
Source File: LessEqualFixture.cs
View license
[Test]
		public void MixedTypes()
		{	
			Assert.LessOrEqual( 5, 8L, "int to long");
			Assert.LessO/n ..... /n //View Source file for more details /n }

6. Example

Project: AutoTest.Net
Source File: LessEqualFixture.cs
View license
[Test]
		public void MixedTypes()
		{	
			Assert.LessOrEqual( 5, 8L, "int to long");
			Assert.LessO/n ..... /n //View Source file for more details /n }

7. Example

Project: AutoTest.Net
Source File: LessEqualFixture.cs
View license
[Test]
		public void MixedTypes()
		{	
			Assert.LessOrEqual( 5, 8L, "int to long");
			Assert.LessO/n ..... /n //View Source file for more details /n }

8. Example

Project: nunit
Source File: LessEqualFixture.cs
View license
[Test]
        public void MixedTypes()
        {	
            Assert.LessOrEqual( 5, 8L, "int to lo/n ..... /n //View Source file for more details /n }

9. Example

Project: ContinuousTests
Source File: LessEqualFixture.cs
View license
[Test]
		public void MixedTypes()
		{	
			Assert.LessOrEqual( 5, 8L, "int to long");
			Assert.LessO/n ..... /n //View Source file for more details /n }

10. Example

Project: ContinuousTests
Source File: LessEqualFixture.cs
View license
[Test]
		public void MixedTypes()
		{	
			Assert.LessOrEqual( 5, 8L, "int to long");
			Assert.LessO/n ..... /n //View Source file for more details /n }

11. Example

Project: nunit
Source File: LessEqualFixture.cs
View license
[Test]
        public void LessOrEqual()
        {
            // Test equality check for all forms
/n ..... /n //View Source file for more details /n }

12. Example

Project: ContinuousTests
Source File: LessEqualFixture.cs
View license
[Test]
        public void LessOrEqual()
        {
            // Test equality check for all forms
/n ..... /n //View Source file for more details /n }

13. Example

Project: ContinuousTests
Source File: LessEqualFixture.cs
View license
[Test]
        public void LessOrEqual()
        {
            // Test equality check for all forms
/n ..... /n //View Source file for more details /n }

14. Example

Project: ContinuousTests
Source File: LessEqualFixture.cs
View license
[Test]
        public void LessOrEqual()
        {
            // Test equality check for all forms
/n ..... /n //View Source file for more details /n }

15. Example

Project: AutoTest.Net
Source File: LessEqualFixture.cs
View license
[Test]
        public void LessOrEqual()
        {
            // Test equality check for all forms
/n ..... /n //View Source file for more details /n }

16. Example

Project: AutoTest.Net
Source File: LessEqualFixture.cs
View license
[Test]
        public void LessOrEqual()
        {
            // Test equality check for all forms
/n ..... /n //View Source file for more details /n }

17. Example

Project: AutoTest.Net
Source File: LessEqualFixture.cs
View license
[Test]
        public void LessOrEqual()
        {
            // Test equality check for all forms
/n ..... /n //View Source file for more details /n }