From 4cf01038d54ce935b5f782bee8fc533d580ff8cc Mon Sep 17 00:00:00 2001 From: Alex Dyachenko Date: Tue, 20 May 2014 15:37:16 -0400 Subject: [PATCH] Refactored unit test method names to be prefixed with the type --- .../mpir.net-tests/HugeIntTests/Arithmetic.cs | 294 +++++++++--------- .../mpir.net-tests/HugeIntTests/Assignment.cs | 6 +- .../mpir.net-tests/HugeIntTests/Bitwise.cs | 20 +- .../HugeIntTests/Comparisons.cs | 84 ++--- .../HugeIntTests/ConstructionAndDisposal.cs | 32 +- .../HugeIntTests/Conversions.cs | 30 +- .../HugeIntTests/ExpressionTests.cs | 2 +- mpir.net/mpir.net-tests/HugeIntTests/IO.cs | 26 +- mpir.net/mpir.net-tests/HugeIntTests/Math.cs | 14 +- .../HugeIntTests/NumberTheoretic.cs | 40 +-- .../HugeRationalTests/Arithmetic.cs | 78 ++--- .../HugeRationalTests/Assignment.cs | 6 +- .../HugeRationalTests/Comparisons.cs | 78 ++--- .../ConstructionAndDisposal.cs | 34 +- .../HugeRationalTests/Conversions.cs | 20 +- .../HugeRationalTests/ExpressionTests.cs | 2 +- .../mpir.net-tests/HugeRationalTests/IO.cs | 14 +- mpir.net/mpir.net-tests/RandomTests/Random.cs | 14 +- 18 files changed, 397 insertions(+), 397 deletions(-) diff --git a/mpir.net/mpir.net-tests/HugeIntTests/Arithmetic.cs b/mpir.net/mpir.net-tests/HugeIntTests/Arithmetic.cs index e4cab0bf..2ed533da 100644 --- a/mpir.net/mpir.net-tests/HugeIntTests/Arithmetic.cs +++ b/mpir.net/mpir.net-tests/HugeIntTests/Arithmetic.cs @@ -28,7 +28,7 @@ namespace MPIR.Tests.HugeIntTests #region Add [TestMethod] - public void AddHugeInt() + public void IntAddHugeInt() { using (var a = new HugeInt("222509832503450298345029835740293845720")) using (var b = new HugeInt("222987435987982730594288574029879874539")) @@ -40,7 +40,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void AddLimb() + public void IntAddLimb() { using (var a = new HugeInt("222509832503450298345029835740293845720")) { @@ -51,7 +51,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void AddToLimb() + public void IntAddToLimb() { using (var a = new HugeInt("222509832503450298345029835740293845720")) { @@ -62,7 +62,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void AddSignedLimb() + public void IntAddSignedLimb() { using (var a = new HugeInt("222509832503450298345029835740293845720")) { @@ -73,7 +73,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void AddToSignedLimb() + public void IntAddToSignedLimb() { using (var a = new HugeInt("222509832503450298345029835740293845720")) { @@ -84,7 +84,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void AddToMaxSignedLimb() + public void IntAddToMaxSignedLimb() { using (var a = new HugeInt("222509832503450298345029835740293845720")) { @@ -95,7 +95,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void AddExpressionHugeInt() + public void IntAddExpressionHugeInt() { using (var a = new HugeInt("222509832503450298345029835740293845720")) using (var b = new HugeInt("222987435987982730594288574029879874539")) @@ -111,7 +111,7 @@ namespace MPIR.Tests.HugeIntTests #region Subtract [TestMethod] - public void SubtractHugeInt() + public void IntSubtractHugeInt() { using (var a = new HugeInt("445497268491433028939318409770173720259")) using (var b = new HugeInt("222987435987982730594288574029879874539")) @@ -122,7 +122,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void SubtractLimb() + public void IntSubtractLimb() { using (var a = new HugeInt("222509832503450298349318409770173720259")) { @@ -133,7 +133,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void SubtractFromLimb() + public void IntSubtractFromLimb() { using (var a = new HugeInt("222509832503450298349318409770173720259")) { @@ -144,7 +144,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void SubtractPositiveSignedLimb() + public void IntSubtractPositiveSignedLimb() { using (var a = new HugeInt("222509832503450298349318409770173720259")) { @@ -155,7 +155,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void SubtractFromPositiveSignedLimb() + public void IntSubtractFromPositiveSignedLimb() { using (var a = new HugeInt("222509832503450298349318409770173720259")) { @@ -166,7 +166,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void SubtractSignedLimb() + public void IntSubtractSignedLimb() { using (var a = new HugeInt("222509832503450298345029835740293845720")) { @@ -177,7 +177,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void SubtractFromSignedLimb() + public void IntSubtractFromSignedLimb() { using (var a = new HugeInt("222509832503450298345029835740293845720")) { @@ -192,7 +192,7 @@ namespace MPIR.Tests.HugeIntTests #region Multiply [TestMethod] - public void MultiplyByHugeInt() + public void IntMultiplyByHugeInt() { using (var a = new HugeInt("90234098723098475098479385345098345")) using (var b = new HugeInt("7859487359873459872354987610987897")) @@ -203,7 +203,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void MultiplyByLimb() + public void IntMultiplyByLimb() { using (var a = new HugeInt("90234098723098475098479385345098345")) { @@ -214,7 +214,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void MultiplyLimbBy() + public void IntMultiplyLimbBy() { using (var a = new HugeInt("90234098723098475098479385345098345")) { @@ -225,7 +225,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void MultiplyBySignedLimb() + public void IntMultiplyBySignedLimb() { using (var a = new HugeInt("90234098723098475098479385345098345")) { @@ -236,7 +236,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void MultiplySignedLimbBy() + public void IntMultiplySignedLimbBy() { using (var a = new HugeInt("90234098723098475098479385345098345")) { @@ -251,7 +251,7 @@ namespace MPIR.Tests.HugeIntTests #region Add Product [TestMethod] - public void AddProductHugeInt() + public void IntAddProductHugeInt() { using (var a = new HugeInt("98750293847520938457029384572093480498357")) using (var c = new HugeInt("23094582093845093574093845093485039450934")) @@ -264,7 +264,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void AddProductLimb() + public void IntAddProductLimb() { using (var a = new HugeInt("98750293847520938457029384572093480498357")) using (var c = new HugeInt("-23094582093845093574093845093485039450934")) @@ -277,7 +277,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void AddProductLimbTo() + public void IntAddProductLimbTo() { using (var a = new HugeInt("98750293847520938457029384572093480498357")) using (var c = new HugeInt("-23094582093845093574093845093485039450934")) @@ -290,7 +290,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void AddProductLimbTo2() + public void IntAddProductLimbTo2() { using (var a = new HugeInt("98750293847520938457029384572093480498357")) using (var c = new HugeInt("-23094582093845093574093845093485039450934")) @@ -303,7 +303,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void AddProductLimbTo3() + public void IntAddProductLimbTo3() { using (var a = new HugeInt("98750293847520938457029384572093480498357")) using (var c = new HugeInt("-23094582093845093574093845093485039450934")) @@ -317,7 +317,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void AddProductSignedLimb() + public void IntAddProductSignedLimb() { using (var a = new HugeInt("98750293847520938457029384572093480498357")) using (var c = new HugeInt("23094582093845093574093845093485039450934")) @@ -330,7 +330,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void AddProductSignedLimbTo() + public void IntAddProductSignedLimbTo() { using (var a = new HugeInt("98750293847520938457029384572093480498357")) using (var c = new HugeInt("-23094582093845093574093845093485039450934")) @@ -343,7 +343,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void AddProductSignedLimbTo2() + public void IntAddProductSignedLimbTo2() { using (var a = new HugeInt("98750293847520938457029384572093480498357")) using (var c = new HugeInt("-23094582093845093574093845093485039450934")) @@ -356,7 +356,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void AddProductSignedLimbTo3() + public void IntAddProductSignedLimbTo3() { using (var a = new HugeInt("98750293847520938457029384572093480498357")) using (var c = new HugeInt("23094582093845093574093845093485039450934")) @@ -374,7 +374,7 @@ namespace MPIR.Tests.HugeIntTests #region Subtract Product [TestMethod] - public void SubtractProductHugeInt() + public void IntSubtractProductHugeInt() { using (var a = new HugeInt("98750293847520938457029384572093480498357")) using (var c = new HugeInt("23094582093845093574093845093485039450934")) @@ -387,7 +387,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void SubtractProductLimb() + public void IntSubtractProductLimb() { using (var a = new HugeInt("98750293847520938457029384572093480498357")) using (var c = new HugeInt("23094582093845093574093845093485039450934")) @@ -400,7 +400,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void SubtractProductSignedLimb() + public void IntSubtractProductSignedLimb() { using (var a = new HugeInt("98750293847520938457029384572093480498357")) using (var c = new HugeInt("-23094582093845093574093845093485039450934")) @@ -413,7 +413,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void SubtractProductSignedLimb2() + public void IntSubtractProductSignedLimb2() { using (var a = new HugeInt("98750293847520938457029384572093480498357")) using (var c = new HugeInt("-23094582093845093574093845093485039450934")) @@ -425,7 +425,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void SubtractProductSignedLimb3() + public void IntSubtractProductSignedLimb3() { using (var a = new HugeInt("98750293847520938457029384572093480498357")) using (var c = new HugeInt("23094582093845093574093845093485039450934")) @@ -442,7 +442,7 @@ namespace MPIR.Tests.HugeIntTests #region Shift Left [TestMethod] - public void ShiftLeft() + public void IntShiftLeft() { using (var a = new HugeInt("-12345700987ABCDEF2345CBDEFA245230948", 16)) { @@ -457,7 +457,7 @@ namespace MPIR.Tests.HugeIntTests #region Shift Right [TestMethod] - public void ShiftRight() + public void IntShiftRight() { using (var a = new HugeInt("ABCDEF052834524092854092874502983745029345723098457209305983434345", 16)) { @@ -468,7 +468,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void ShiftRightCeiling() + public void IntShiftRightCeiling() { using (var a = new HugeInt("ABCDEF052834524092854092874502983745029345723098457209305983434345", 16)) { @@ -479,7 +479,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void ShiftRightNegativeCeiling() + public void IntShiftRightNegativeCeiling() { using (var a = new HugeInt("-ABCDEF052834524092854092874502983745029345723098457209305983434345", 16)) { @@ -490,7 +490,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void ShiftRightFloor() + public void IntShiftRightFloor() { using (var a = new HugeInt("ABCDEF052834524092854092874502983745029345723098457209305983434345", 16)) { @@ -501,7 +501,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void ShiftRightNegativeFloor() + public void IntShiftRightNegativeFloor() { using (var a = new HugeInt("-ABCDEF052834524092854092874502983745029345723098457209305983434345", 16)) { @@ -512,7 +512,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void ShiftRightTruncate() + public void IntShiftRightTruncate() { using (var a = new HugeInt("ABCDEF052834524092854092874502983745029345723098457209305983434345", 16)) { @@ -523,7 +523,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void ShiftRightNegativeTruncate() + public void IntShiftRightNegativeTruncate() { using (var a = new HugeInt("-ABCDEF052834524092854092874502983745029345723098457209305983434345", 16)) { @@ -538,7 +538,7 @@ namespace MPIR.Tests.HugeIntTests #region Negate [TestMethod] - public void Negate() + public void IntNegate() { using (var a = new HugeInt("24092854092874502983745029345723098457209")) { @@ -554,7 +554,7 @@ namespace MPIR.Tests.HugeIntTests #region Abs [TestMethod] - public void MakeAbsolute() + public void IntMakeAbsolute() { using (var a = new HugeInt("-24092854092874502983745029345723098457209")) { @@ -572,7 +572,7 @@ namespace MPIR.Tests.HugeIntTests #region Int [TestMethod] - public void DivideHugeInt() + public void IntDivideHugeInt() { using (var a = new HugeInt("234052834524092854092874502983745029345723098457209305983434345")) using (var b = new HugeInt("394580293847502987609283945873594873409587")) @@ -583,7 +583,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void DivideHugeIntCeiling() + public void IntDivideHugeIntCeiling() { using (var a = new HugeInt("234052834524092854092874502983745029345723098457209305983434345")) using (var b = new HugeInt("394580293847502987609283945873594873409587")) @@ -594,7 +594,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void DivideHugeIntNegativeCeiling() + public void IntDivideHugeIntNegativeCeiling() { using (var a = new HugeInt("-234052834524092854092874502983745029345723098457209305983434345")) using (var b = new HugeInt("394580293847502987609283945873594873409587")) @@ -605,7 +605,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void DivideHugeIntFloor() + public void IntDivideHugeIntFloor() { using (var a = new HugeInt("234052834524092854092874502983745029345723098457209305983434345")) using (var b = new HugeInt("394580293847502987609283945873594873409587")) @@ -616,7 +616,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void DivideHugeIntNegativeFloor() + public void IntDivideHugeIntNegativeFloor() { using (var a = new HugeInt("-234052834524092854092874502983745029345723098457209305983434345")) using (var b = new HugeInt("394580293847502987609283945873594873409587")) @@ -627,7 +627,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void DivideHugeIntTruncate() + public void IntDivideHugeIntTruncate() { using (var a = new HugeInt("234052834524092854092874502983745029345723098457209305983434345")) using (var b = new HugeInt("394580293847502987609283945873594873409587")) @@ -638,7 +638,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void DivideHugeIntNegativeTruncate() + public void IntDivideHugeIntNegativeTruncate() { using (var a = new HugeInt("-234052834524092854092874502983745029345723098457209305983434345")) using (var b = new HugeInt("394580293847502987609283945873594873409587")) @@ -653,7 +653,7 @@ namespace MPIR.Tests.HugeIntTests #region Int with mod [TestMethod] - public void DivideHugeIntCeilingWithMod() + public void IntDivideHugeIntCeilingWithMod() { using (var a = new HugeInt("234052834524092854092874502983745029345723098457209305983434345")) using (var b = new HugeInt("394580293847502987609283945873594873409587")) @@ -666,7 +666,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void DivideHugeIntNegativeCeilingWithMod() + public void IntDivideHugeIntNegativeCeilingWithMod() { using (var a = new HugeInt("-234052834524092854092874502983745029345723098457209305983434345")) using (var b = new HugeInt("394580293847502987609283945873594873409587")) @@ -679,7 +679,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void DivideHugeIntFloorWithMod() + public void IntDivideHugeIntFloorWithMod() { using (var a = new HugeInt("234052834524092854092874502983745029345723098457209305983434345")) using (var b = new HugeInt("394580293847502987609283945873594873409587")) @@ -692,7 +692,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void DivideHugeIntNegativeFloorWithMod() + public void IntDivideHugeIntNegativeFloorWithMod() { using (var a = new HugeInt("-234052834524092854092874502983745029345723098457209305983434345")) using (var b = new HugeInt("394580293847502987609283945873594873409587")) @@ -705,7 +705,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void DivideHugeIntTruncateWithMod() + public void IntDivideHugeIntTruncateWithMod() { using (var a = new HugeInt("234052834524092854092874502983745029345723098457209305983434345")) using (var b = new HugeInt("394580293847502987609283945873594873409587")) @@ -718,7 +718,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void DivideHugeIntNegativeTruncateWithMod() + public void IntDivideHugeIntNegativeTruncateWithMod() { using (var a = new HugeInt("-234052834524092854092874502983745029345723098457209305983434345")) using (var b = new HugeInt("394580293847502987609283945873594873409587")) @@ -735,7 +735,7 @@ namespace MPIR.Tests.HugeIntTests #region Limb [TestMethod] - public void DivideLimb() + public void IntDivideLimb() { using (var a = new HugeInt("234052834524092854092874502983745029345723098457209305983434345")) { @@ -746,7 +746,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void DivideLimbCeiling() + public void IntDivideLimbCeiling() { using (var a = new HugeInt("234052834524092854092874502983745029345723098457209305983434345")) { @@ -757,7 +757,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void DivideLimbNegativeCeiling() + public void IntDivideLimbNegativeCeiling() { using (var a = new HugeInt("-234052834524092854092874502983745029345723098457209305983434345")) { @@ -768,7 +768,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void DivideLimbFloor() + public void IntDivideLimbFloor() { using (var a = new HugeInt("234052834524092854092874502983745029345723098457209305983434345")) { @@ -779,7 +779,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void DivideLimbNegativeFloor() + public void IntDivideLimbNegativeFloor() { using (var a = new HugeInt("-234052834524092854092874502983745029345723098457209305983434345")) { @@ -790,7 +790,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void DivideLimbTruncate() + public void IntDivideLimbTruncate() { using (var a = new HugeInt("234052834524092854092874502983745029345723098457209305983434345")) { @@ -801,7 +801,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void DivideLimbNegativeTruncate() + public void IntDivideLimbNegativeTruncate() { using (var a = new HugeInt("-234052834524092854092874502983745029345723098457209305983434345")) { @@ -816,7 +816,7 @@ namespace MPIR.Tests.HugeIntTests #region Limb with Mod [TestMethod] - public void DivideLimbWithMod() + public void IntDivideLimbWithMod() { using (var a = new HugeInt("234052834524092854092874502983745029345723098457209305983434345")) using (var c = new HugeInt()) @@ -829,7 +829,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void DivideLimbCeilingWithMod() + public void IntDivideLimbCeilingWithMod() { using (var a = new HugeInt("234052834524092854092874502983745029345723098457209305983434345")) using (var c = new HugeInt()) @@ -842,7 +842,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void DivideLimbNegativeCeilingWithMod() + public void IntDivideLimbNegativeCeilingWithMod() { using (var a = new HugeInt("-234052834524092854092874502983745029345723098457209305983434345")) using (var c = new HugeInt()) @@ -855,7 +855,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void DivideLimbFloorWithMod() + public void IntDivideLimbFloorWithMod() { using (var a = new HugeInt("234052834524092854092874502983745029345723098457209305983434345")) using (var c = new HugeInt()) @@ -868,7 +868,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void DivideLimbNegativeFloorWithMod() + public void IntDivideLimbNegativeFloorWithMod() { using (var a = new HugeInt("-234052834524092854092874502983745029345723098457209305983434345")) using (var c = new HugeInt()) @@ -881,7 +881,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void DivideLimbTruncateWithMod() + public void IntDivideLimbTruncateWithMod() { using (var a = new HugeInt("234052834524092854092874502983745029345723098457209305983434345")) using (var c = new HugeInt()) @@ -894,7 +894,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void DivideLimbNegativeTruncateWithMod() + public void IntDivideLimbNegativeTruncateWithMod() { using (var a = new HugeInt("-234052834524092854092874502983745029345723098457209305983434345")) using (var c = new HugeInt()) @@ -911,7 +911,7 @@ namespace MPIR.Tests.HugeIntTests #region Limb with Mod x 2 [TestMethod] - public void DivideLimbWithMod2() + public void IntDivideLimbWithMod2() { using (var a = new HugeInt("234052834524092854092874502983745029345723098457209305983434345")) using (var c = new HugeInt()) @@ -926,7 +926,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void DivideLimbCeilingWithMod2() + public void IntDivideLimbCeilingWithMod2() { using (var a = new HugeInt("234052834524092854092874502983745029345723098457209305983434345")) using (var c = new HugeInt()) @@ -941,7 +941,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void DivideLimbNegativeCeilingWithMod2() + public void IntDivideLimbNegativeCeilingWithMod2() { using (var a = new HugeInt("-234052834524092854092874502983745029345723098457209305983434345")) using (var c = new HugeInt()) @@ -956,7 +956,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void DivideLimbFloorWithMod2() + public void IntDivideLimbFloorWithMod2() { using (var a = new HugeInt("234052834524092854092874502983745029345723098457209305983434345")) using (var c = new HugeInt()) @@ -971,7 +971,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void DivideLimbNegativeFloorWithMod2() + public void IntDivideLimbNegativeFloorWithMod2() { using (var a = new HugeInt("-234052834524092854092874502983745029345723098457209305983434345")) using (var c = new HugeInt()) @@ -986,7 +986,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void DivideLimbTruncateWithMod2() + public void IntDivideLimbTruncateWithMod2() { using (var a = new HugeInt("234052834524092854092874502983745029345723098457209305983434345")) using (var c = new HugeInt()) @@ -1001,7 +1001,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void DivideLimbNegativeTruncateWithMod2() + public void IntDivideLimbNegativeTruncateWithMod2() { using (var a = new HugeInt("-234052834524092854092874502983745029345723098457209305983434345")) using (var c = new HugeInt()) @@ -1020,7 +1020,7 @@ namespace MPIR.Tests.HugeIntTests #region Limb with Limb Mod [TestMethod] - public void DivideLimbWithMod3() + public void IntDivideLimbWithMod3() { using (var a = new HugeInt("234052834524092854092874502983745029345723098457209305983434345")) { @@ -1033,7 +1033,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void DivideLimbCeilingWithMod3() + public void IntDivideLimbCeilingWithMod3() { using (var a = new HugeInt("234052834524092854092874502983745029345723098457209305983434345")) { @@ -1046,7 +1046,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void DivideLimbNegativeCeilingWithMod3() + public void IntDivideLimbNegativeCeilingWithMod3() { using (var a = new HugeInt("-234052834524092854092874502983745029345723098457209305983434345")) { @@ -1059,7 +1059,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void DivideLimbFloorWithMod3() + public void IntDivideLimbFloorWithMod3() { using (var a = new HugeInt("234052834524092854092874502983745029345723098457209305983434345")) { @@ -1072,7 +1072,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void DivideLimbNegativeFloorWithMod3() + public void IntDivideLimbNegativeFloorWithMod3() { using (var a = new HugeInt("-234052834524092854092874502983745029345723098457209305983434345")) { @@ -1085,7 +1085,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void DivideLimbTruncateWithMod3() + public void IntDivideLimbTruncateWithMod3() { using (var a = new HugeInt("234052834524092854092874502983745029345723098457209305983434345")) { @@ -1098,7 +1098,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void DivideLimbNegativeTruncateWithMod3() + public void IntDivideLimbNegativeTruncateWithMod3() { using (var a = new HugeInt("-234052834524092854092874502983745029345723098457209305983434345")) { @@ -1115,7 +1115,7 @@ namespace MPIR.Tests.HugeIntTests #region Exact [TestMethod] - public void DivideExactlyHugeInt() + public void IntDivideExactlyHugeInt() { using (var a = new HugeInt("234052834524092854092874502983745029345723098457209305983434345")) using (var b = new HugeInt("394580293847502987609283945873594873409587")) @@ -1127,7 +1127,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void DivideExactlyLimb() + public void IntDivideExactlyLimb() { using (var a = new HugeInt("234052834524092854092874502983745029345723098457209305983434345")) using (var c = new HugeInt()) @@ -1143,7 +1143,7 @@ namespace MPIR.Tests.HugeIntTests #region IsDivisible [TestMethod] - public void IsDivisibleByHugeInt() + public void IntIsDivisibleByHugeInt() { using (var a = new HugeInt("234052834524092854092874502983745029345723098457209305983434345")) using (var b = new HugeInt("394580293847502987609283945873594873409587")) @@ -1156,7 +1156,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void IsDivisibleByLimb() + public void IntIsDivisibleByLimb() { using (var a = new HugeInt("234052834524092854092874502983745029345723098457209305983434345")) { @@ -1169,7 +1169,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void IsDivisibleByPowerOf2() + public void IntIsDivisibleByPowerOf2() { using (var a = new HugeInt("234052834524092854092874502983745029345723098457209305983434345")) { @@ -1185,7 +1185,7 @@ namespace MPIR.Tests.HugeIntTests #region IsCongruent [TestMethod] - public void IsCongruentToHugeInt() + public void IntIsCongruentToHugeInt() { using (var a = new HugeInt("234052834524092854092874502983745029345723098457209305983434345")) using (var b = new HugeInt("394580293847502987609283945873594873409587")) @@ -1199,7 +1199,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void IsCongruentToLimb() + public void IntIsCongruentToLimb() { using (var a = new HugeInt("234052834524092854092874502983745029345723098457209305983434345")) { @@ -1213,7 +1213,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void IsCongruentToPowerOf2() + public void IntIsCongruentToPowerOf2() { using (var a = new HugeInt("234052834524092854092874502983745029345723098457209305983434345")) using (var c = new HugeInt("293847502987609283945873594873409587")) @@ -1236,7 +1236,7 @@ namespace MPIR.Tests.HugeIntTests #region Int [TestMethod] - public void ModHugeInt() + public void IntModHugeInt() { using (var a = new HugeInt("234052834524092854092874502983745029345723098457209305983434345")) using (var b = new HugeInt("394580293847502987609283945873594873409587")) @@ -1247,7 +1247,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void ModHugeIntCeiling() + public void IntModHugeIntCeiling() { using (var a = new HugeInt("234052834524092854092874502983745029345723098457209305983434345")) using (var b = new HugeInt("394580293847502987609283945873594873409587")) @@ -1258,7 +1258,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void ModHugeIntNegativeCeiling() + public void IntModHugeIntNegativeCeiling() { using (var a = new HugeInt("-234052834524092854092874502983745029345723098457209305983434345")) using (var b = new HugeInt("394580293847502987609283945873594873409587")) @@ -1269,7 +1269,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void ModHugeIntFloor() + public void IntModHugeIntFloor() { using (var a = new HugeInt("234052834524092854092874502983745029345723098457209305983434345")) using (var b = new HugeInt("394580293847502987609283945873594873409587")) @@ -1280,7 +1280,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void ModHugeIntNegativeFloor() + public void IntModHugeIntNegativeFloor() { using (var a = new HugeInt("-234052834524092854092874502983745029345723098457209305983434345")) using (var b = new HugeInt("394580293847502987609283945873594873409587")) @@ -1291,7 +1291,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void ModHugeIntTruncate() + public void IntModHugeIntTruncate() { using (var a = new HugeInt("234052834524092854092874502983745029345723098457209305983434345")) using (var b = new HugeInt("394580293847502987609283945873594873409587")) @@ -1302,7 +1302,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void ModHugeIntNegativeTruncate() + public void IntModHugeIntNegativeTruncate() { using (var a = new HugeInt("-234052834524092854092874502983745029345723098457209305983434345")) using (var b = new HugeInt("394580293847502987609283945873594873409587")) @@ -1317,7 +1317,7 @@ namespace MPIR.Tests.HugeIntTests #region Int with quotient [TestMethod] - public void ModHugeIntCeilingWithQuotient() + public void IntModHugeIntCeilingWithQuotient() { using (var a = new HugeInt("234052834524092854092874502983745029345723098457209305983434345")) using (var b = new HugeInt("394580293847502987609283945873594873409587")) @@ -1330,7 +1330,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void ModHugeIntNegativeCeilingWithQuotient() + public void IntModHugeIntNegativeCeilingWithQuotient() { using (var a = new HugeInt("-234052834524092854092874502983745029345723098457209305983434345")) using (var b = new HugeInt("394580293847502987609283945873594873409587")) @@ -1343,7 +1343,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void ModHugeIntFloorWithQuotient() + public void IntModHugeIntFloorWithQuotient() { using (var a = new HugeInt("234052834524092854092874502983745029345723098457209305983434345")) using (var b = new HugeInt("394580293847502987609283945873594873409587")) @@ -1356,7 +1356,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void ModHugeIntNegativeFloorWithQuotient() + public void IntModHugeIntNegativeFloorWithQuotient() { using (var a = new HugeInt("-234052834524092854092874502983745029345723098457209305983434345")) using (var b = new HugeInt("394580293847502987609283945873594873409587")) @@ -1369,7 +1369,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void ModHugeIntTruncateWithQuotient() + public void IntModHugeIntTruncateWithQuotient() { using (var a = new HugeInt("234052834524092854092874502983745029345723098457209305983434345")) using (var b = new HugeInt("394580293847502987609283945873594873409587")) @@ -1382,7 +1382,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void ModHugeIntNegativeTruncateWithQuotient() + public void IntModHugeIntNegativeTruncateWithQuotient() { using (var a = new HugeInt("-234052834524092854092874502983745029345723098457209305983434345")) using (var b = new HugeInt("394580293847502987609283945873594873409587")) @@ -1399,7 +1399,7 @@ namespace MPIR.Tests.HugeIntTests #region Limb [TestMethod] - public void ModLimb() + public void IntModLimb() { using (var a = new HugeInt("234052834524092854092874502983745029345723098457209305983434345")) { @@ -1410,7 +1410,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void ModLimbCeiling() + public void IntModLimbCeiling() { using (var a = new HugeInt("234052834524092854092874502983745029345723098457209305983434345")) { @@ -1421,7 +1421,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void ModLimbNegativeCeiling() + public void IntModLimbNegativeCeiling() { using (var a = new HugeInt("-234052834524092854092874502983745029345723098457209305983434345")) { @@ -1432,7 +1432,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void ModLimbFloor() + public void IntModLimbFloor() { using (var a = new HugeInt("234052834524092854092874502983745029345723098457209305983434345")) { @@ -1443,7 +1443,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void ModLimbNegativeFloor() + public void IntModLimbNegativeFloor() { using (var a = new HugeInt("-234052834524092854092874502983745029345723098457209305983434345")) { @@ -1454,7 +1454,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void ModLimbTruncate() + public void IntModLimbTruncate() { using (var a = new HugeInt("234052834524092854092874502983745029345723098457209305983434345")) { @@ -1465,7 +1465,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void ModLimbNegativeTruncate() + public void IntModLimbNegativeTruncate() { using (var a = new HugeInt("-234052834524092854092874502983745029345723098457209305983434345")) { @@ -1480,7 +1480,7 @@ namespace MPIR.Tests.HugeIntTests #region Limb With Quotient [TestMethod] - public void ModLimbWithQuotient() + public void IntModLimbWithQuotient() { using (var a = new HugeInt("234052834524092854092874502983745029345723098457209305983434345")) using (var c = new HugeInt()) @@ -1493,7 +1493,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void ModLimbCeilingWithQuotient() + public void IntModLimbCeilingWithQuotient() { using (var a = new HugeInt("234052834524092854092874502983745029345723098457209305983434345")) using (var c = new HugeInt()) @@ -1506,7 +1506,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void ModLimbNegativeCeilingWithQuotient() + public void IntModLimbNegativeCeilingWithQuotient() { using (var a = new HugeInt("-234052834524092854092874502983745029345723098457209305983434345")) using (var c = new HugeInt()) @@ -1519,7 +1519,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void ModLimbFloorWithQuotient() + public void IntModLimbFloorWithQuotient() { using (var a = new HugeInt("234052834524092854092874502983745029345723098457209305983434345")) using (var c = new HugeInt()) @@ -1532,7 +1532,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void ModLimbNegativeFloorWithQuotient() + public void IntModLimbNegativeFloorWithQuotient() { using (var a = new HugeInt("-234052834524092854092874502983745029345723098457209305983434345")) using (var c = new HugeInt()) @@ -1545,7 +1545,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void ModLimbTruncateWithQuotient() + public void IntModLimbTruncateWithQuotient() { using (var a = new HugeInt("234052834524092854092874502983745029345723098457209305983434345")) using (var c = new HugeInt()) @@ -1558,7 +1558,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void ModLimbNegativeTruncateWithQuotient() + public void IntModLimbNegativeTruncateWithQuotient() { using (var a = new HugeInt("-234052834524092854092874502983745029345723098457209305983434345")) using (var c = new HugeInt()) @@ -1575,7 +1575,7 @@ namespace MPIR.Tests.HugeIntTests #region Limb With Quotient and Limb Mod [TestMethod] - public void ModLimbWithQuotient2() + public void IntModLimbWithQuotient2() { using (var a = new HugeInt("234052834524092854092874502983745029345723098457209305983434345")) using (var c = new HugeInt()) @@ -1590,7 +1590,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void ModLimbCeilingWithQuotient2() + public void IntModLimbCeilingWithQuotient2() { using (var a = new HugeInt("234052834524092854092874502983745029345723098457209305983434345")) using (var c = new HugeInt()) @@ -1605,7 +1605,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void ModLimbNegativeCeilingWithQuotient2() + public void IntModLimbNegativeCeilingWithQuotient2() { using (var a = new HugeInt("-234052834524092854092874502983745029345723098457209305983434345")) using (var c = new HugeInt()) @@ -1620,7 +1620,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void ModLimbFloorWithQuotient2() + public void IntModLimbFloorWithQuotient2() { using (var a = new HugeInt("234052834524092854092874502983745029345723098457209305983434345")) using (var c = new HugeInt()) @@ -1635,7 +1635,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void ModLimbNegativeFloorWithQuotient2() + public void IntModLimbNegativeFloorWithQuotient2() { using (var a = new HugeInt("-234052834524092854092874502983745029345723098457209305983434345")) using (var c = new HugeInt()) @@ -1650,7 +1650,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void ModLimbTruncateWithQuotient2() + public void IntModLimbTruncateWithQuotient2() { using (var a = new HugeInt("234052834524092854092874502983745029345723098457209305983434345")) using (var c = new HugeInt()) @@ -1665,7 +1665,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void ModLimbNegativeTruncateWithQuotient2() + public void IntModLimbNegativeTruncateWithQuotient2() { using (var a = new HugeInt("-234052834524092854092874502983745029345723098457209305983434345")) using (var c = new HugeInt()) @@ -1685,7 +1685,7 @@ namespace MPIR.Tests.HugeIntTests #region Limb With Limb Mod [TestMethod] - public void ModLimbWithQuotient3() + public void IntModLimbWithQuotient3() { using (var a = new HugeInt("234052834524092854092874502983745029345723098457209305983434345")) { @@ -1698,7 +1698,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void ModLimbCeilingWithQuotient3() + public void IntModLimbCeilingWithQuotient3() { using (var a = new HugeInt("234052834524092854092874502983745029345723098457209305983434345")) { @@ -1711,7 +1711,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void ModLimbNegativeCeilingWithQuotient3() + public void IntModLimbNegativeCeilingWithQuotient3() { using (var a = new HugeInt("-234052834524092854092874502983745029345723098457209305983434345")) { @@ -1724,7 +1724,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void ModLimbFloorWithQuotient3() + public void IntModLimbFloorWithQuotient3() { using (var a = new HugeInt("234052834524092854092874502983745029345723098457209305983434345")) { @@ -1737,7 +1737,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void ModLimbNegativeFloorWithQuotient3() + public void IntModLimbNegativeFloorWithQuotient3() { using (var a = new HugeInt("-234052834524092854092874502983745029345723098457209305983434345")) { @@ -1750,7 +1750,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void ModLimbTruncateWithQuotient3() + public void IntModLimbTruncateWithQuotient3() { using (var a = new HugeInt("234052834524092854092874502983745029345723098457209305983434345")) { @@ -1763,7 +1763,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void ModLimbNegativeTruncateWithQuotient3() + public void IntModLimbNegativeTruncateWithQuotient3() { using (var a = new HugeInt("-234052834524092854092874502983745029345723098457209305983434345")) { @@ -1781,7 +1781,7 @@ namespace MPIR.Tests.HugeIntTests #region Mod Limb function [TestMethod] - public void ModLimbFunction() + public void IntModLimbFunction() { using (var a = new HugeInt("234052834524092854092874502983745029345723098457209305983434345")) { @@ -1792,7 +1792,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void ModLimbFunctionCeiling() + public void IntModLimbFunctionCeiling() { using (var a = new HugeInt("234052834524092854092874502983745029345723098457209305983434345")) { @@ -1803,7 +1803,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void ModLimbFunctionNegativeCeiling() + public void IntModLimbFunctionNegativeCeiling() { using (var a = new HugeInt("-234052834524092854092874502983745029345723098457209305983434345")) { @@ -1814,7 +1814,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void ModLimbFunctionFloor() + public void IntModLimbFunctionFloor() { using (var a = new HugeInt("234052834524092854092874502983745029345723098457209305983434345")) { @@ -1825,7 +1825,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void ModLimbFunctionNegativeFloor() + public void IntModLimbFunctionNegativeFloor() { using (var a = new HugeInt("-234052834524092854092874502983745029345723098457209305983434345")) { @@ -1836,7 +1836,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void ModLimbFunctionTruncate() + public void IntModLimbFunctionTruncate() { using (var a = new HugeInt("234052834524092854092874502983745029345723098457209305983434345")) { @@ -1847,7 +1847,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void ModLimbFunctionNegativeTruncate() + public void IntModLimbFunctionNegativeTruncate() { using (var a = new HugeInt("-234052834524092854092874502983745029345723098457209305983434345")) { @@ -1862,7 +1862,7 @@ namespace MPIR.Tests.HugeIntTests #region Shift Right Remainder [TestMethod] - public void ShiftRightRemainder() + public void IntShiftRightRemainder() { using (var a = new HugeInt("ABCDEF052834524092854092874502983745029345723098457209305983434345", 16)) { @@ -1873,7 +1873,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void ShiftRightRemainderCeiling() + public void IntShiftRightRemainderCeiling() { using (var a = new HugeInt("ABCDEF052834524092854092874502983745029345723098457209305983434345", 16)) { @@ -1884,7 +1884,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void ShiftRightRemainderNegativeCeiling() + public void IntShiftRightRemainderNegativeCeiling() { using (var a = new HugeInt("-ABCDEF052834524092854092874502983745029345723098457209305983434345", 16)) { @@ -1895,7 +1895,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void ShiftRightRemainderFloor() + public void IntShiftRightRemainderFloor() { using (var a = new HugeInt("ABCDEF052834524092854092874502983745029345723098457209305983434345", 16)) { @@ -1906,7 +1906,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void ShiftRightRemainderNegativeFloor() + public void IntShiftRightRemainderNegativeFloor() { using (var a = new HugeInt("-ABCDEF052834524092854092874502983745029345723098457209305983434345", 16)) { @@ -1917,7 +1917,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void ShiftRightRemainderTruncate() + public void IntShiftRightRemainderTruncate() { using (var a = new HugeInt("ABCDEF052834524092854092874502983745029345723098457209305983434345", 16)) { @@ -1928,7 +1928,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void ShiftRightRemainderNegativeTruncate() + public void IntShiftRightRemainderNegativeTruncate() { using (var a = new HugeInt("-ABCDEF052834524092854092874502983745029345723098457209305983434345", 16)) { diff --git a/mpir.net/mpir.net-tests/HugeIntTests/Assignment.cs b/mpir.net/mpir.net-tests/HugeIntTests/Assignment.cs index f3f3e62c..cbbc8bf1 100644 --- a/mpir.net/mpir.net-tests/HugeIntTests/Assignment.cs +++ b/mpir.net/mpir.net-tests/HugeIntTests/Assignment.cs @@ -26,7 +26,7 @@ namespace MPIR.Tests.HugeIntTests public class Assignment { [TestMethod] - public void AssignCopy() + public void IntAssignCopy() { using (var a = new HugeInt("-222509832503450298345029835740293845720")) using (var b = new HugeInt()) @@ -37,7 +37,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void Swap() + public void IntSwap() { using (var a = new HugeInt("-222509832503450298345029835740293845720")) using (var b = new HugeInt("2039847290878794872059384789347534534")) @@ -51,7 +51,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void CompoundOperators() + public void IntCompoundOperators() { using (var a = new HugeInt("938475092834705928347523452345")) { diff --git a/mpir.net/mpir.net-tests/HugeIntTests/Bitwise.cs b/mpir.net/mpir.net-tests/HugeIntTests/Bitwise.cs index f985b1a0..9db0f50c 100644 --- a/mpir.net/mpir.net-tests/HugeIntTests/Bitwise.cs +++ b/mpir.net/mpir.net-tests/HugeIntTests/Bitwise.cs @@ -26,7 +26,7 @@ namespace MPIR.Tests.HugeIntTests public class Bitwise { [TestMethod] - public void AndHugeInt() + public void IntAndHugeInt() { using (var a = new HugeInt("0x10123456789ABCDEF0123456789ABCDEF0123456789ABCDEF")) using (var b = new HugeInt("0x100000000000000000123456789ABCDEFFFFFFFFFFFFFFFFF")) @@ -38,7 +38,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void OrHugeInt() + public void IntOrHugeInt() { using (var a = new HugeInt("0x10123456789ABCDEF0123456789ABCDEF0123456789ABCDEF")) using (var b = new HugeInt("0x100000000000000000123456789ABCDEFFFFFFFFFFFFFFFFF")) @@ -50,7 +50,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void XorHugeInt() + public void IntXorHugeInt() { using (var a = new HugeInt("0x10123456789ABCDEF0123456789ABCDEF0123456789ABCDEF")) using (var b = new HugeInt("0x000000000000000000123456789ABCDEFFFFFFFFFFFFFFFFF")) @@ -62,7 +62,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void Not() + public void IntNot() { using (var a = new HugeInt("0x10123456789ABCDEF0123456789ABCDEF0123456789ABCDEF")) using (var c = new HugeInt()) @@ -73,7 +73,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void PopCount() + public void IntPopCount() { using (var a = new HugeInt("0x1ABCDEF8984948281360922385394772450147012613851354303")) { @@ -83,7 +83,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void HammingDistance() + public void IntHammingDistance() { using (var a = new HugeInt("0x1ABCDE08984948281360922385394772450147012613851354F03")) using (var b = new HugeInt("0x1ABCDEF8984948281360922345394772450147012613851354303")) @@ -96,7 +96,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void FindBit() + public void IntFindBit() { using (var a = new HugeInt("0xA0000000000000000000800000000001")) { @@ -131,7 +131,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void SetBit() + public void IntSetBit() { using (var a = new HugeInt("0xA0000000000000000000200000000001")) { @@ -151,7 +151,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void GetBit() + public void IntGetBit() { using (var a = new HugeInt("0xA000000000000000000200000000001")) { @@ -172,7 +172,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void ComplementBit() + public void IntComplementBit() { using (var a = new HugeInt("0xA0000000000000000000800000000001")) { diff --git a/mpir.net/mpir.net-tests/HugeIntTests/Comparisons.cs b/mpir.net/mpir.net-tests/HugeIntTests/Comparisons.cs index 33f663fe..35e6f20d 100644 --- a/mpir.net/mpir.net-tests/HugeIntTests/Comparisons.cs +++ b/mpir.net/mpir.net-tests/HugeIntTests/Comparisons.cs @@ -28,7 +28,7 @@ namespace MPIR.Tests.HugeIntTests #region CompareTo [TestMethod] - public void CompareToHugeInt() + public void IntCompareToHugeInt() { using (var a = new HugeInt("-222509832503450298345029835740293845721")) using (var b = new HugeInt("222509832503450298345029835740293845720")) @@ -41,7 +41,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void CompareToObject() + public void IntCompareToObject() { using (var a = new HugeInt("-222509832503450298345029835740293845721")) using (var b = new HugeInt("222509832503450298345029835740293845720")) @@ -54,7 +54,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void CompareToExpression() + public void IntCompareToExpression() { using (var a = new HugeInt("-222509832503450298345029835740293845721")) using (var b = new HugeInt("222509832503450298345029835740293845720")) @@ -68,7 +68,7 @@ namespace MPIR.Tests.HugeIntTests [TestMethod] [ExpectedException(typeof(ArgumentException))] - public void CompareToNonExpression() + public void IntCompareToNonExpression() { using (var a = new HugeInt("-222509832503450298345029835740293845721")) { @@ -77,7 +77,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void CompareToLimb() + public void IntCompareToLimb() { using (var a = new HugeInt("-222509821")) { @@ -90,7 +90,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void CompareToSignedLimb() + public void IntCompareToSignedLimb() { using (var a = new HugeInt("-222509821")) { @@ -104,7 +104,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void CompareToSignedDouble() + public void IntCompareToSignedDouble() { using (var a = new HugeInt("-222509821")) { @@ -122,7 +122,7 @@ namespace MPIR.Tests.HugeIntTests #region comparison operators with expr [TestMethod] - public void OperatorLessThan() + public void IntOperatorLessThan() { using (var a = new HugeInt("-222509832503450298345029835740293845721")) using (var b = new HugeInt("222509832503450298345029835740293845720")) @@ -138,7 +138,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void OperatorLessThanOrEqual() + public void IntOperatorLessThanOrEqual() { using (var a = new HugeInt("-222509832503450298345029835740293845721")) using (var b = new HugeInt("222509832503450298345029835740293845720")) @@ -154,7 +154,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void OperatorGreaterThan() + public void IntOperatorGreaterThan() { using (var a = new HugeInt("-222509832503450298345029835740293845721")) using (var b = new HugeInt("222509832503450298345029835740293845720")) @@ -170,7 +170,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void OperatorGreaterThanOrEqual() + public void IntOperatorGreaterThanOrEqual() { using (var a = new HugeInt("-222509832503450298345029835740293845721")) using (var b = new HugeInt("222509832503450298345029835740293845720")) @@ -190,7 +190,7 @@ namespace MPIR.Tests.HugeIntTests #region comparison operators with limb [TestMethod] - public void OperatorLessThanLimb() + public void IntOperatorLessThanLimb() { using (var a = new HugeInt("3845721")) { @@ -204,7 +204,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void OperatorLessThanOrEqualLimb() + public void IntOperatorLessThanOrEqualLimb() { using (var a = new HugeInt("3845721")) { @@ -221,7 +221,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void OperatorGreaterThanLimb() + public void IntOperatorGreaterThanLimb() { using (var a = new HugeInt("3845721")) { @@ -235,7 +235,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void OperatorGreaterThanOrEqualLimb() + public void IntOperatorGreaterThanOrEqualLimb() { using (var a = new HugeInt("3845721")) { @@ -256,7 +256,7 @@ namespace MPIR.Tests.HugeIntTests #region comparison operators with signed limb [TestMethod] - public void OperatorLessThanSignedLimb() + public void IntOperatorLessThanSignedLimb() { using (var a = new HugeInt("-3845721")) { @@ -270,7 +270,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void OperatorLessThanOrEqualSignedLimb() + public void IntOperatorLessThanOrEqualSignedLimb() { using (var a = new HugeInt("-3845721")) { @@ -287,7 +287,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void OperatorGreaterThanSignedLimb() + public void IntOperatorGreaterThanSignedLimb() { using (var a = new HugeInt("-3845721")) { @@ -301,7 +301,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void OperatorGreaterThanOrEqualSignedLimb() + public void IntOperatorGreaterThanOrEqualSignedLimb() { using (var a = new HugeInt("-3845721")) { @@ -322,7 +322,7 @@ namespace MPIR.Tests.HugeIntTests #region comparison operators with double [TestMethod] - public void OperatorLessThanDouble() + public void IntOperatorLessThanDouble() { using (var a = new HugeInt("-3845721")) { @@ -336,7 +336,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void OperatorLessThanOrEqualDouble() + public void IntOperatorLessThanOrEqualDouble() { using (var a = new HugeInt("-3845721")) { @@ -353,7 +353,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void OperatorGreaterThanDouble() + public void IntOperatorGreaterThanDouble() { using (var a = new HugeInt("-3845721")) { @@ -367,7 +367,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void OperatorGreaterThanOrEqualDouble() + public void IntOperatorGreaterThanOrEqualDouble() { using (var a = new HugeInt("-3845721")) { @@ -389,7 +389,7 @@ namespace MPIR.Tests.HugeIntTests #region Equals [TestMethod] - public void EqualsHugeInt() + public void IntEqualsHugeInt() { using (var a = new HugeInt("-222509832503450298345029835740293845721")) using (var b = new HugeInt("222509832503450298345029835740293845720")) @@ -403,7 +403,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void EqualsExpression() + public void IntEqualsExpression() { using (var a = new HugeInt("-222509832503450298345029835740293845721")) using (var b = new HugeInt("222509832503450298345029835740293845720")) @@ -416,7 +416,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void EqualsNonExpression() + public void IntEqualsNonExpression() { using (var a = new HugeInt("-222509832503450298345029835740293845721")) { @@ -425,7 +425,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void EqualsLimb() + public void IntEqualsLimb() { using (var a = new HugeInt("222509832503")) { @@ -437,7 +437,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void EqualsSignedLimb() + public void IntEqualsSignedLimb() { using (var a = new HugeInt("-222509832505")) { @@ -449,7 +449,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void EqualsDouble() + public void IntEqualsDouble() { using (var a = new HugeInt("-222509832505")) { @@ -466,7 +466,7 @@ namespace MPIR.Tests.HugeIntTests #region Equality operators with expr [TestMethod] - public void EqualsOperatorHugeInt() + public void IntEqualsOperatorHugeInt() { using (var a = new HugeInt("-222509832503450298345029835740293845721")) using (var b = new HugeInt("222509832503450298345029835740293845720")) @@ -479,7 +479,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void NotEqualOperatorHugeInt() + public void IntNotEqualOperatorHugeInt() { using (var a = new HugeInt("-222509832503450298345029835740293845721")) using (var b = new HugeInt("222509832503450298345029835740293845720")) @@ -496,7 +496,7 @@ namespace MPIR.Tests.HugeIntTests #region Equality operators with Limb [TestMethod] - public void EqualsOperatorLimb() + public void IntEqualsOperatorLimb() { using (var a = new HugeInt("-835740293845721")) { @@ -508,7 +508,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void NotEqualOperatorLimb() + public void IntNotEqualOperatorLimb() { using (var a = new HugeInt("-835740293845721")) { @@ -524,7 +524,7 @@ namespace MPIR.Tests.HugeIntTests #region Equality operators with Signed Limb [TestMethod] - public void EqualsOperatorSignedLimb() + public void IntEqualsOperatorSignedLimb() { using (var a = new HugeInt("-835740293845721")) { @@ -536,7 +536,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void NotEqualOperatorSignedLimb() + public void IntNotEqualOperatorSignedLimb() { using (var a = new HugeInt("-835740293845721")) { @@ -552,7 +552,7 @@ namespace MPIR.Tests.HugeIntTests #region Equality operators with Double [TestMethod] - public void EqualsOperatorDouble() + public void IntEqualsOperatorDouble() { using (var a = new HugeInt("-835740293845721")) { @@ -565,7 +565,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void NotEqualOperatorDouble() + public void IntNotEqualOperatorDouble() { using (var a = new HugeInt("-835740293845721")) { @@ -582,7 +582,7 @@ namespace MPIR.Tests.HugeIntTests #region GetHashCode [TestMethod] - public void GetHashCodeTest() + public void IntGetHashCodeTest() { using (var a = new HugeInt("-222509832503450298345029835740293845721")) { @@ -597,7 +597,7 @@ namespace MPIR.Tests.HugeIntTests #region CompareAbsTo [TestMethod] - public void CompareAbsToHugeInt() + public void IntCompareAbsToHugeInt() { using (var a = new HugeInt("-222509832503450298345029835740293845721")) using (var b = new HugeInt("222509832503450298345029835740293845720")) @@ -611,7 +611,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void CompareAbsToLimb() + public void IntCompareAbsToLimb() { using (var a = new HugeInt("-222509821")) { @@ -626,7 +626,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void CompareAbsToDouble() + public void IntCompareAbsToDouble() { using (var a = new HugeInt("-222509821")) { @@ -647,7 +647,7 @@ namespace MPIR.Tests.HugeIntTests #region Sign [TestMethod] - public void Sign() + public void IntSign() { using (var a = new HugeInt("-222509832503450298345029835740293845721")) { diff --git a/mpir.net/mpir.net-tests/HugeIntTests/ConstructionAndDisposal.cs b/mpir.net/mpir.net-tests/HugeIntTests/ConstructionAndDisposal.cs index 05b20a26..9f68d357 100644 --- a/mpir.net/mpir.net-tests/HugeIntTests/ConstructionAndDisposal.cs +++ b/mpir.net/mpir.net-tests/HugeIntTests/ConstructionAndDisposal.cs @@ -26,7 +26,7 @@ namespace MPIR.Tests.HugeIntTests public class ConstructionAndDisposal { [TestMethod] - public void DefaultConstructor() + public void IntDefaultConstructor() { using (var a = new HugeInt()) { @@ -38,7 +38,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void Dispose() + public void IntDispose() { var a = new HugeInt(); a.Dispose(); @@ -48,7 +48,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void ConstructorFromLong() + public void IntConstructorFromLong() { var n = "123456789123456"; using (var a = new HugeInt(long.Parse(n))) @@ -60,7 +60,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void ConstructorFromLongNegative() + public void IntConstructorFromLongNegative() { var n = "-123456789123456"; using (var a = new HugeInt(long.Parse(n))) @@ -72,7 +72,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void ConstructorFromULong() + public void IntConstructorFromULong() { using (var a = new HugeInt(ulong.MaxValue)) { @@ -83,7 +83,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void ConstructorFromDouble() + public void IntConstructorFromDouble() { using (var a = new HugeInt(123456789123456.9)) { @@ -92,7 +92,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void ConstructorFromPower() + public void IntConstructorFromPower() { using (var a = new HugeInt(HugeInt.Power(10, 41))) { @@ -101,7 +101,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void ConstructorFromDoubleNegative() + public void IntConstructorFromDoubleNegative() { using (var a = new HugeInt(-123456789123456.9)) { @@ -110,7 +110,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void Allocate() + public void IntAllocate() { using (var a = HugeInt.Allocate(129)) { @@ -121,7 +121,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void Reallocate() + public void IntReallocate() { using (var a = new HugeInt("543209879487374938579837")) { @@ -143,7 +143,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void StringConstructor() + public void IntStringConstructor() { var n = "5432109876543212345789023245987"; using (var a = new HugeInt(n)) @@ -155,13 +155,13 @@ namespace MPIR.Tests.HugeIntTests [TestMethod] [ExpectedException(typeof(ArgumentException))] - public void StringConstructorInvalid() + public void IntStringConstructorInvalid() { var a = new HugeInt("12345A"); } [TestMethod] - public void StringConstructorHex() + public void IntStringConstructorHex() { using (var a = new HugeInt("143210ABCDEF32123457ACDB324598799", 16)) { @@ -170,7 +170,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void StringConstructorHexPrefix() + public void IntStringConstructorHexPrefix() { var n = "143210ABCDEF32123457ACDB324598799"; using (var a = new HugeInt("0x" + n)) @@ -180,7 +180,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void StringAssignmentHexPrefix() + public void IntStringAssignmentHexPrefix() { var n = "143210ABCDEF32123457ACDB324598799"; using (var a = new HugeInt("0x" + n)) @@ -194,7 +194,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void ConstructorFromExpression() + public void IntConstructorFromExpression() { using (var a = new HugeInt("2340958273409578234095823045723490587")) using (var b = new HugeInt(a + 1)) diff --git a/mpir.net/mpir.net-tests/HugeIntTests/Conversions.cs b/mpir.net/mpir.net-tests/HugeIntTests/Conversions.cs index 74fdc891..2628c445 100644 --- a/mpir.net/mpir.net-tests/HugeIntTests/Conversions.cs +++ b/mpir.net/mpir.net-tests/HugeIntTests/Conversions.cs @@ -27,7 +27,7 @@ namespace MPIR.Tests.HugeIntTests public class Conversions { [TestMethod] - public void ToStringDecimal() + public void IntToStringDecimal() { var n = "-23429384756298357462983476598345623984756"; using (var a = new HugeInt(n)) @@ -37,7 +37,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void ToStringHex() + public void IntToStringHex() { var n = "-23429abcdef298357462983fedcba345623984756"; using (var a = new HugeInt(n, 16)) @@ -48,7 +48,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void ToAndFromUlong() + public void IntToAndFromUlong() { using (var a = new HugeInt()) { @@ -63,7 +63,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void ToAndFromLong() + public void IntToAndFromLong() { using (var a = new HugeInt()) { @@ -77,7 +77,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void ToAndFromDouble() + public void IntToAndFromDouble() { using (var a = new HugeInt()) using (var lo = new HugeInt()) @@ -105,7 +105,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void FromString() + public void IntFromString() { using (var a = new HugeInt()) { @@ -121,7 +121,7 @@ namespace MPIR.Tests.HugeIntTests [TestMethod] [ExpectedException(typeof(ArgumentException))] - public void FromInvalidString() + public void IntFromInvalidString() { using (var a = new HugeInt()) { @@ -130,7 +130,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void ToStringTruncated() + public void IntToStringTruncated() { var n = string.Concat("123456789".Select(c => new string(c, 30))); using (var a = new HugeInt(n)) @@ -143,7 +143,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void FitsUlong() + public void IntFitsUlong() { using (var a = new HugeInt(ulong.MaxValue)) { @@ -158,7 +158,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void FitsLong() + public void IntFitsLong() { using (var a = new HugeInt(long.MaxValue)) { @@ -173,7 +173,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void FitsUint() + public void IntFitsUint() { using (var a = new HugeInt(uint.MaxValue)) { @@ -188,7 +188,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void FitsInt() + public void IntFitsInt() { using (var a = new HugeInt(int.MaxValue)) { @@ -203,7 +203,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void FitsUshort() + public void IntFitsUshort() { using (var a = new HugeInt(ushort.MaxValue)) { @@ -218,7 +218,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void FitsShort() + public void IntFitsShort() { using (var a = new HugeInt(short.MaxValue)) { @@ -233,7 +233,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void ApproximateSizeInBase() + public void IntApproximateSizeInBase() { using (var a = new HugeInt("2983475029834750293429834750298347502934298347502983475029342983475029834750293429834750298347502934")) { diff --git a/mpir.net/mpir.net-tests/HugeIntTests/ExpressionTests.cs b/mpir.net/mpir.net-tests/HugeIntTests/ExpressionTests.cs index 0012aa46..8ac4e10b 100644 --- a/mpir.net/mpir.net-tests/HugeIntTests/ExpressionTests.cs +++ b/mpir.net/mpir.net-tests/HugeIntTests/ExpressionTests.cs @@ -31,7 +31,7 @@ namespace MPIR.Tests.HugeIntTests public class ExpressionTests { [TestMethod] - public void TestAllExpressions() + public void IntTestAllExpressions() { var baseExpr = typeof(IntegerExpression); var allExpressions = diff --git a/mpir.net/mpir.net-tests/HugeIntTests/IO.cs b/mpir.net/mpir.net-tests/HugeIntTests/IO.cs index 4ebdbef6..2ab48a1c 100644 --- a/mpir.net/mpir.net-tests/HugeIntTests/IO.cs +++ b/mpir.net/mpir.net-tests/HugeIntTests/IO.cs @@ -29,7 +29,7 @@ namespace MPIR.Tests.HugeIntTests public class IO { [TestMethod] - public void InputOutputRaw() + public void IntInputOutputRaw() { using (var a = new HugeInt("0x10123456789ABCDEF0123456789ABCDEF0123456789ABCDEF")) using (var b = new HugeInt()) @@ -45,7 +45,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void InputOutputStr() + public void IntInputOutputStr() { using (var a = new HugeInt("0x10123456789ABCDEF0123456789ABCDEF0123456789ABCDEF")) using (var b = new HugeInt()) @@ -66,7 +66,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void InputOutputStrHex() + public void IntInputOutputStrHex() { using (var a = new HugeInt("0x10123456789ABCDEF0123456789ABCDEF0123456789ABCDEF")) using (var b = new HugeInt()) @@ -91,7 +91,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void InputOutputStrHexLower() + public void IntInputOutputStrHexLower() { using (var a = new HugeInt("0x10123456789ABCDEF0123456789ABCDEF0123456789ABCDEF")) using (var b = new HugeInt()) @@ -116,7 +116,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void InputOutputStrOctal() + public void IntInputOutputStrOctal() { using (var a = new HugeInt("0x10123456789ABCDEF0123456789ABCDEF0123456789ABCDEF")) using (var b = new HugeInt()) @@ -141,7 +141,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void InputOutputStrBinary() + public void IntInputOutputStrBinary() { using (var a = new HugeInt("0x10123456789ABCDEF0123456789ABCDEF0123456789ABCDEF")) using (var b = new HugeInt()) @@ -166,7 +166,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void InputOutputStr62() + public void IntInputOutputStr62() { using (var a = new HugeInt("0x10123456789ABCDEF0123456789ABCDEF0123456789ABCDEF")) using (var b = new HugeInt()) @@ -188,7 +188,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void ImportExport() + public void IntImportExport() { using (var a = new HugeInt("0x10123456789ABCDEF0123456789ABCDEF0123456789ABCDEF")) using (var b = new HugeInt()) @@ -212,7 +212,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void ImportExportAllocating() + public void IntImportExportAllocating() { using (var a = new HugeInt("0x10123456789ABCDEF0123456789ABCDEF0123456789ABCDEF")) using (var b = new HugeInt()) @@ -234,7 +234,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void ImportExportAllocatingShort() + public void IntImportExportAllocatingShort() { using (var a = new HugeInt("0x10123456789ABCDEF0123456789ABCDEF0123456789ABCDEF")) using (var b = new HugeInt()) @@ -256,7 +256,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void ImportExportAllocatingZero() + public void IntImportExportAllocatingZero() { using (var a = new HugeInt()) using (var b = new HugeInt()) @@ -276,7 +276,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void Size() + public void IntSize() { using (var a = new HugeInt("-0x10123456789ABCDEF0123456789ABCDEF0123456789ABCDEF")) { @@ -286,7 +286,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void GetLimb() + public void IntGetLimb() { using (var a = new HugeInt("-0x10123456789ABCDEFA123456789ABCDEF0123456789ABCDEF")) { diff --git a/mpir.net/mpir.net-tests/HugeIntTests/Math.cs b/mpir.net/mpir.net-tests/HugeIntTests/Math.cs index bf28e07b..f70f0954 100644 --- a/mpir.net/mpir.net-tests/HugeIntTests/Math.cs +++ b/mpir.net/mpir.net-tests/HugeIntTests/Math.cs @@ -28,7 +28,7 @@ namespace MPIR.Tests.HugeIntTests #region Exponentiation [TestMethod] - public void PowerModHugeInt() + public void IntPowerModHugeInt() { using (var a = new HugeInt("2835698356928736487698769283645293409781234")) using (var b = new HugeInt("3")) @@ -40,7 +40,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void PowerModLimb() + public void IntPowerModLimb() { using (var a = new HugeInt("2835698356928736487698769283645293409781234")) using (var c = new HugeInt("9786459872639458729387304958673243509870923452745892673402935742456")) @@ -51,7 +51,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void PowerLimb() + public void IntPowerLimb() { using (var a = new HugeInt("9785412309485720938412983404349")) { @@ -65,7 +65,7 @@ namespace MPIR.Tests.HugeIntTests #region Roots [TestMethod] - public void Root() + public void IntRoot() { var n = "8984948281360922385394772450147012613851354303"; using (var a = new HugeInt(n)) @@ -93,7 +93,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void SquareRoot() + public void IntSquareRoot() { var n = "8984948281360922385394772450147012613851354303"; using (var a = new HugeInt(n)) @@ -113,7 +113,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void IsPerfectPower() + public void IntIsPerfectPower() { using (var a = new HugeInt("8984948281360922385394772450147012613851354303")) using (var b = new HugeInt()) @@ -130,7 +130,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void IsPerfectSquare() + public void IntIsPerfectSquare() { using (var a = new HugeInt("8984948281360922385394772450147012613851354303")) using (var b = new HugeInt()) diff --git a/mpir.net/mpir.net-tests/HugeIntTests/NumberTheoretic.cs b/mpir.net/mpir.net-tests/HugeIntTests/NumberTheoretic.cs index a4ccf0ba..16845ecf 100644 --- a/mpir.net/mpir.net-tests/HugeIntTests/NumberTheoretic.cs +++ b/mpir.net/mpir.net-tests/HugeIntTests/NumberTheoretic.cs @@ -29,7 +29,7 @@ namespace MPIR.Tests.HugeIntTests public class NumberTheoretic { [TestMethod] - public void IsProbablePrime() + public void IntIsProbablePrime() { using (var a = new HugeInt("622288097498926496141095869268883999563096063592498055290461")) using (var random = MpirRandom.Default()) @@ -41,7 +41,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void IsLikelyPrime() + public void IntIsLikelyPrime() { using (var a = new HugeInt("622288097498926496141095869268883999563096063592498055290461")) using (var random = MpirRandom.Default()) @@ -53,7 +53,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void NextPrimeCandidate() + public void IntNextPrimeCandidate() { using (var a = new HugeInt("622288097498926496141095869268883999563096063592498055290460")) using (var random = MpirRandom.Default()) @@ -63,7 +63,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void Gcd() + public void IntGcd() { using (var a = new HugeInt("29927402397991286489627837734179186385188296382227")) using (var b = new HugeInt()) @@ -76,7 +76,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void GcdExt() + public void IntGcdExt() { using (var a = new HugeInt(12)) using (var b = new HugeInt(21)) @@ -92,7 +92,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void GcdExt1() + public void IntGcdExt1() { using (var a = new HugeInt(12)) using (var b = new HugeInt(21)) @@ -106,7 +106,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void GcdExt2() + public void IntGcdExt2() { using (var a = new HugeInt(12)) using (var b = new HugeInt(21)) @@ -120,7 +120,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void GcdLimb() + public void IntGcdLimb() { using (var a = new HugeInt("29927402397991286489627837734179186385188296382227")) { @@ -130,7 +130,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void Lcm() + public void IntLcm() { using (var a = new HugeInt("29927402397991286489627837734179186385188296382227")) { @@ -141,7 +141,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void LcmLimb() + public void IntLcmLimb() { using (var a = new HugeInt("29927402397991286489627837734179186385188296382227")) { @@ -151,7 +151,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void Invert() + public void IntInvert() { using (var a = new HugeInt("29927402397991286489627837734179186385188296382227")) using (var m = new HugeInt("622288097498926496141095869268883999563096063592498055290461")) @@ -164,7 +164,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void Jacobi() + public void IntJacobi() { using (var a = new HugeInt("9288562863495827364985273645298367452")) using (var b = new HugeInt("876428957629387610928574612341")) @@ -174,7 +174,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void Legendre() + public void IntLegendre() { using (var a = new HugeInt("9288562863495827364985273645298367452")) using (var p = new HugeInt("29927402397991286489627837734179186385188296382227")) @@ -184,7 +184,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void Kronecker() + public void IntKronecker() { using (var a = new HugeInt("9288562863495827364985273645298367452")) using (var b = new HugeInt("29927402397991286489627837734179186385188296382227")) @@ -199,7 +199,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void RemoveFactors() + public void IntRemoveFactors() { using (var a = new HugeInt("9288562863495827364985273645298367452")) using (var b = new HugeInt("29927402397991286489627837734179186385188296382227")) @@ -212,7 +212,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void Factorial() + public void IntFactorial() { using (var a = new HugeInt(HugeInt.Factorial(30))) using (var b = new HugeInt("50")) @@ -232,7 +232,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void Primorial() + public void IntPrimorial() { var N = 256; var sieve = new bool[N]; @@ -252,7 +252,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void Binomial() + public void IntBinomial() { using (var a = new HugeInt(HugeInt.Binomial(40, 15))) using (var b = new HugeInt("41")) @@ -264,7 +264,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void Fibonacci() + public void IntFibonacci() { using (var a = new HugeInt(HugeInt.Fibonacci(300))) using (var b = new HugeInt()) @@ -284,7 +284,7 @@ namespace MPIR.Tests.HugeIntTests } [TestMethod] - public void Lucas() + public void IntLucas() { using (var f299 = new HugeInt()) using (var f300 = new HugeInt(HugeInt.Fibonacci(300).SavingPreviousTo(f299))) diff --git a/mpir.net/mpir.net-tests/HugeRationalTests/Arithmetic.cs b/mpir.net/mpir.net-tests/HugeRationalTests/Arithmetic.cs index f60b04f4..99783f61 100644 --- a/mpir.net/mpir.net-tests/HugeRationalTests/Arithmetic.cs +++ b/mpir.net/mpir.net-tests/HugeRationalTests/Arithmetic.cs @@ -28,7 +28,7 @@ namespace MPIR.Tests.HugeRationalTests #region Add [TestMethod] - public void AddHugeRational() + public void RationalAddHugeRational() { using (var a = new HugeRational("222509832503450298345029835740293845720")) using (var b = new HugeRational("222987435987982730594288574029879874539")) @@ -40,7 +40,7 @@ namespace MPIR.Tests.HugeRationalTests } [TestMethod] - public void AddLimb() + public void RationalAddLimb() { using (var a = new HugeRational("222509832503450298345029835740293845720")) { @@ -51,7 +51,7 @@ namespace MPIR.Tests.HugeRationalTests } [TestMethod] - public void AddToLimb() + public void RationalAddToLimb() { using (var a = new HugeRational("222509832503450298345029835740293845720")) { @@ -62,7 +62,7 @@ namespace MPIR.Tests.HugeRationalTests } [TestMethod] - public void AddSignedLimb() + public void RationalAddSignedLimb() { using (var a = new HugeRational("222509832503450298345029835740293845720")) { @@ -73,7 +73,7 @@ namespace MPIR.Tests.HugeRationalTests } [TestMethod] - public void AddToSignedLimb() + public void RationalAddToSignedLimb() { using (var a = new HugeRational("222509832503450298345029835740293845720")) { @@ -84,7 +84,7 @@ namespace MPIR.Tests.HugeRationalTests } [TestMethod] - public void AddToMaxSignedLimb() + public void RationalAddToMaxSignedLimb() { using (var a = new HugeRational("222509832503450298345029835740293845720")) { @@ -95,7 +95,7 @@ namespace MPIR.Tests.HugeRationalTests } [TestMethod] - public void AddExpressionHugeRational() + public void RationalAddExpressionHugeRational() { using (var a = new HugeRational("222509832503450298345029835740293845720")) using (var b = new HugeRational("222987435987982730594288574029879874539")) @@ -111,7 +111,7 @@ namespace MPIR.Tests.HugeRationalTests #region Subtract [TestMethod] - public void SubtractHugeRational() + public void RationalSubtractHugeRational() { using (var a = new HugeRational("445497268491433028939318409770173720259")) using (var b = new HugeRational("222987435987982730594288574029879874539")) @@ -122,7 +122,7 @@ namespace MPIR.Tests.HugeRationalTests } [TestMethod] - public void SubtractLimb() + public void RationalSubtractLimb() { using (var a = new HugeRational("222509832503450298349318409770173720259")) { @@ -133,7 +133,7 @@ namespace MPIR.Tests.HugeRationalTests } [TestMethod] - public void SubtractFromLimb() + public void RationalSubtractFromLimb() { using (var a = new HugeRational("222509832503450298349318409770173720259")) { @@ -144,7 +144,7 @@ namespace MPIR.Tests.HugeRationalTests } [TestMethod] - public void SubtractPositiveSignedLimb() + public void RationalSubtractPositiveSignedLimb() { using (var a = new HugeRational("222509832503450298349318409770173720259")) { @@ -155,7 +155,7 @@ namespace MPIR.Tests.HugeRationalTests } [TestMethod] - public void SubtractFromPositiveSignedLimb() + public void RationalSubtractFromPositiveSignedLimb() { using (var a = new HugeRational("222509832503450298349318409770173720259")) { @@ -166,7 +166,7 @@ namespace MPIR.Tests.HugeRationalTests } [TestMethod] - public void SubtractSignedLimb() + public void RationalSubtractSignedLimb() { using (var a = new HugeRational("222509832503450298345029835740293845720")) { @@ -177,7 +177,7 @@ namespace MPIR.Tests.HugeRationalTests } [TestMethod] - public void SubtractFromSignedLimb() + public void RationalSubtractFromSignedLimb() { using (var a = new HugeRational("222509832503450298345029835740293845720")) { @@ -192,7 +192,7 @@ namespace MPIR.Tests.HugeRationalTests #region Multiply [TestMethod] - public void MultiplyByHugeRational() + public void RationalMultiplyByHugeRational() { using (var a = new HugeRational("90234098723098475098479385345098345")) using (var b = new HugeRational("7859487359873459872354987610987897")) @@ -203,7 +203,7 @@ namespace MPIR.Tests.HugeRationalTests } [TestMethod] - public void MultiplyByLimb() + public void RationalMultiplyByLimb() { using (var a = new HugeRational("90234098723098475098479385345098345")) { @@ -214,7 +214,7 @@ namespace MPIR.Tests.HugeRationalTests } [TestMethod] - public void MultiplyLimbBy() + public void RationalMultiplyLimbBy() { using (var a = new HugeRational("90234098723098475098479385345098345")) { @@ -225,7 +225,7 @@ namespace MPIR.Tests.HugeRationalTests } [TestMethod] - public void MultiplyBySignedLimb() + public void RationalMultiplyBySignedLimb() { using (var a = new HugeRational("90234098723098475098479385345098345")) { @@ -236,7 +236,7 @@ namespace MPIR.Tests.HugeRationalTests } [TestMethod] - public void MultiplySignedLimbBy() + public void RationalMultiplySignedLimbBy() { using (var a = new HugeRational("90234098723098475098479385345098345")) { @@ -251,7 +251,7 @@ namespace MPIR.Tests.HugeRationalTests #region Add Product [TestMethod] - public void AddProductHugeRational() + public void RationalAddProductHugeRational() { using (var a = new HugeRational("98750293847520938457029384572093480498357")) using (var c = new HugeRational("23094582093845093574093845093485039450934")) @@ -264,7 +264,7 @@ namespace MPIR.Tests.HugeRationalTests } [TestMethod] - public void AddProductLimb() + public void RationalAddProductLimb() { using (var a = new HugeRational("98750293847520938457029384572093480498357")) using (var c = new HugeRational("-23094582093845093574093845093485039450934")) @@ -277,7 +277,7 @@ namespace MPIR.Tests.HugeRationalTests } [TestMethod] - public void AddProductLimbTo() + public void RationalAddProductLimbTo() { using (var a = new HugeRational("98750293847520938457029384572093480498357")) using (var c = new HugeRational("-23094582093845093574093845093485039450934")) @@ -290,7 +290,7 @@ namespace MPIR.Tests.HugeRationalTests } [TestMethod] - public void AddProductLimbTo2() + public void RationalAddProductLimbTo2() { using (var a = new HugeRational("98750293847520938457029384572093480498357")) using (var c = new HugeRational("-23094582093845093574093845093485039450934")) @@ -303,7 +303,7 @@ namespace MPIR.Tests.HugeRationalTests } [TestMethod] - public void AddProductLimbTo3() + public void RationalAddProductLimbTo3() { using (var a = new HugeRational("98750293847520938457029384572093480498357")) using (var c = new HugeRational("-23094582093845093574093845093485039450934")) @@ -317,7 +317,7 @@ namespace MPIR.Tests.HugeRationalTests } [TestMethod] - public void AddProductSignedLimb() + public void RationalAddProductSignedLimb() { using (var a = new HugeRational("98750293847520938457029384572093480498357")) using (var c = new HugeRational("23094582093845093574093845093485039450934")) @@ -330,7 +330,7 @@ namespace MPIR.Tests.HugeRationalTests } [TestMethod] - public void AddProductSignedLimbTo() + public void RationalAddProductSignedLimbTo() { using (var a = new HugeRational("98750293847520938457029384572093480498357")) using (var c = new HugeRational("-23094582093845093574093845093485039450934")) @@ -343,7 +343,7 @@ namespace MPIR.Tests.HugeRationalTests } [TestMethod] - public void AddProductSignedLimbTo2() + public void RationalAddProductSignedLimbTo2() { using (var a = new HugeRational("98750293847520938457029384572093480498357")) using (var c = new HugeRational("-23094582093845093574093845093485039450934")) @@ -356,7 +356,7 @@ namespace MPIR.Tests.HugeRationalTests } [TestMethod] - public void AddProductSignedLimbTo3() + public void RationalAddProductSignedLimbTo3() { using (var a = new HugeRational("98750293847520938457029384572093480498357")) using (var c = new HugeRational("23094582093845093574093845093485039450934")) @@ -374,7 +374,7 @@ namespace MPIR.Tests.HugeRationalTests #region Subtract Product [TestMethod] - public void SubtractProductHugeRational() + public void RationalSubtractProductHugeRational() { using (var a = new HugeRational("98750293847520938457029384572093480498357")) using (var c = new HugeRational("23094582093845093574093845093485039450934")) @@ -387,7 +387,7 @@ namespace MPIR.Tests.HugeRationalTests } [TestMethod] - public void SubtractProductLimb() + public void RationalSubtractProductLimb() { using (var a = new HugeRational("98750293847520938457029384572093480498357")) using (var c = new HugeRational("23094582093845093574093845093485039450934")) @@ -400,7 +400,7 @@ namespace MPIR.Tests.HugeRationalTests } [TestMethod] - public void SubtractProductSignedLimb() + public void RationalSubtractProductSignedLimb() { using (var a = new HugeRational("98750293847520938457029384572093480498357")) using (var c = new HugeRational("-23094582093845093574093845093485039450934")) @@ -413,7 +413,7 @@ namespace MPIR.Tests.HugeRationalTests } [TestMethod] - public void SubtractProductSignedLimb2() + public void RationalSubtractProductSignedLimb2() { using (var a = new HugeRational("98750293847520938457029384572093480498357")) using (var c = new HugeRational("-23094582093845093574093845093485039450934")) @@ -425,7 +425,7 @@ namespace MPIR.Tests.HugeRationalTests } [TestMethod] - public void SubtractProductSignedLimb3() + public void RationalSubtractProductSignedLimb3() { using (var a = new HugeRational("98750293847520938457029384572093480498357")) using (var c = new HugeRational("23094582093845093574093845093485039450934")) @@ -442,7 +442,7 @@ namespace MPIR.Tests.HugeRationalTests #region Shift Left [TestMethod] - public void ShiftLeft() + public void RationalShiftLeft() { using (var a = new HugeRational("-12345700987ABCDEF2345CBDEFA245230948", 16)) { @@ -457,7 +457,7 @@ namespace MPIR.Tests.HugeRationalTests #region Shift Right [TestMethod] - public void ShiftRight() + public void RationalShiftRight() { using (var a = new HugeRational("ABCDEF052834524092854092874502983745029345723098457209305983434345", 16)) { @@ -472,7 +472,7 @@ namespace MPIR.Tests.HugeRationalTests #region Negate [TestMethod] - public void Negate() + public void RationalNegate() { using (var a = new HugeRational("24092854092874502983745029345723098457209")) { @@ -488,7 +488,7 @@ namespace MPIR.Tests.HugeRationalTests #region Abs [TestMethod] - public void MakeAbsolute() + public void RationalMakeAbsolute() { using (var a = new HugeRational("-24092854092874502983745029345723098457209")) { @@ -506,7 +506,7 @@ namespace MPIR.Tests.HugeRationalTests #region Int [TestMethod] - public void DivideHugeRational() + public void RationalDivideHugeRational() { using (var a = new HugeRational("234052834524092854092874502983745029345723098457209305983434345")) using (var b = new HugeRational("394580293847502987609283945873594873409587")) @@ -521,7 +521,7 @@ namespace MPIR.Tests.HugeRationalTests #region Limb [TestMethod] - public void DivideLimb() + public void RationalDivideLimb() { using (var a = new HugeRational("234052834524092854092874502983745029345723098457209305983434345")) { diff --git a/mpir.net/mpir.net-tests/HugeRationalTests/Assignment.cs b/mpir.net/mpir.net-tests/HugeRationalTests/Assignment.cs index 963fa75b..e490d25f 100644 --- a/mpir.net/mpir.net-tests/HugeRationalTests/Assignment.cs +++ b/mpir.net/mpir.net-tests/HugeRationalTests/Assignment.cs @@ -26,7 +26,7 @@ namespace MPIR.Tests.HugeRationalTests public class Assignment { [TestMethod] - public void AssignCopy() + public void RationalAssignCopy() { using (var a = new HugeRational("-222509832503450298345029835740293845720")) using (var b = new HugeRational()) @@ -37,7 +37,7 @@ namespace MPIR.Tests.HugeRationalTests } [TestMethod] - public void Swap() + public void RationalSwap() { using (var a = new HugeRational("-222509832503450298345029835740293845720")) using (var b = new HugeRational("2039847290878794872059384789347534534")) @@ -51,7 +51,7 @@ namespace MPIR.Tests.HugeRationalTests } [TestMethod] - public void CompoundOperators() + public void RationalCompoundOperators() { using (var a = new HugeRational("938475092834705928347523452345")) { diff --git a/mpir.net/mpir.net-tests/HugeRationalTests/Comparisons.cs b/mpir.net/mpir.net-tests/HugeRationalTests/Comparisons.cs index 3db3cc75..8d45aab0 100644 --- a/mpir.net/mpir.net-tests/HugeRationalTests/Comparisons.cs +++ b/mpir.net/mpir.net-tests/HugeRationalTests/Comparisons.cs @@ -28,7 +28,7 @@ namespace MPIR.Tests.HugeRationalTests #region CompareTo [TestMethod] - public void CompareToHugeRational() + public void RationalCompareToHugeRational() { using (var a = new HugeRational("-222509832503450298345029835740293845721")) using (var b = new HugeRational("222509832503450298345029835740293845720")) @@ -41,7 +41,7 @@ namespace MPIR.Tests.HugeRationalTests } [TestMethod] - public void CompareToObject() + public void RationalCompareToObject() { using (var a = new HugeRational("-222509832503450298345029835740293845721")) using (var b = new HugeRational("222509832503450298345029835740293845720")) @@ -54,7 +54,7 @@ namespace MPIR.Tests.HugeRationalTests } [TestMethod] - public void CompareToExpression() + public void RationalCompareToExpression() { using (var a = new HugeRational("-222509832503450298345029835740293845721")) using (var b = new HugeRational("222509832503450298345029835740293845720")) @@ -68,7 +68,7 @@ namespace MPIR.Tests.HugeRationalTests [TestMethod] [ExpectedException(typeof(ArgumentException))] - public void CompareToNonExpression() + public void RationalCompareToNonExpression() { using (var a = new HugeRational("-222509832503450298345029835740293845721")) { @@ -77,7 +77,7 @@ namespace MPIR.Tests.HugeRationalTests } [TestMethod] - public void CompareToLimb() + public void RationalCompareToLimb() { using (var a = new HugeRational("-222509821")) { @@ -90,7 +90,7 @@ namespace MPIR.Tests.HugeRationalTests } [TestMethod] - public void CompareToSignedLimb() + public void RationalCompareToSignedLimb() { using (var a = new HugeRational("-222509821")) { @@ -104,7 +104,7 @@ namespace MPIR.Tests.HugeRationalTests } [TestMethod] - public void CompareToSignedDouble() + public void RationalCompareToSignedDouble() { using (var a = new HugeRational("-222509821")) { @@ -122,7 +122,7 @@ namespace MPIR.Tests.HugeRationalTests #region comparison operators with expr [TestMethod] - public void OperatorLessThan() + public void RationalOperatorLessThan() { using (var a = new HugeRational("-222509832503450298345029835740293845721")) using (var b = new HugeRational("222509832503450298345029835740293845720")) @@ -138,7 +138,7 @@ namespace MPIR.Tests.HugeRationalTests } [TestMethod] - public void OperatorLessThanOrEqual() + public void RationalOperatorLessThanOrEqual() { using (var a = new HugeRational("-222509832503450298345029835740293845721")) using (var b = new HugeRational("222509832503450298345029835740293845720")) @@ -154,7 +154,7 @@ namespace MPIR.Tests.HugeRationalTests } [TestMethod] - public void OperatorGreaterThan() + public void RationalOperatorGreaterThan() { using (var a = new HugeRational("-222509832503450298345029835740293845721")) using (var b = new HugeRational("222509832503450298345029835740293845720")) @@ -170,7 +170,7 @@ namespace MPIR.Tests.HugeRationalTests } [TestMethod] - public void OperatorGreaterThanOrEqual() + public void RationalOperatorGreaterThanOrEqual() { using (var a = new HugeRational("-222509832503450298345029835740293845721")) using (var b = new HugeRational("222509832503450298345029835740293845720")) @@ -190,7 +190,7 @@ namespace MPIR.Tests.HugeRationalTests #region comparison operators with limb [TestMethod] - public void OperatorLessThanLimb() + public void RationalOperatorLessThanLimb() { using (var a = new HugeRational("3845721")) { @@ -204,7 +204,7 @@ namespace MPIR.Tests.HugeRationalTests } [TestMethod] - public void OperatorLessThanOrEqualLimb() + public void RationalOperatorLessThanOrEqualLimb() { using (var a = new HugeRational("3845721")) { @@ -221,7 +221,7 @@ namespace MPIR.Tests.HugeRationalTests } [TestMethod] - public void OperatorGreaterThanLimb() + public void RationalOperatorGreaterThanLimb() { using (var a = new HugeRational("3845721")) { @@ -235,7 +235,7 @@ namespace MPIR.Tests.HugeRationalTests } [TestMethod] - public void OperatorGreaterThanOrEqualLimb() + public void RationalOperatorGreaterThanOrEqualLimb() { using (var a = new HugeRational("3845721")) { @@ -256,7 +256,7 @@ namespace MPIR.Tests.HugeRationalTests #region comparison operators with signed limb [TestMethod] - public void OperatorLessThanSignedLimb() + public void RationalOperatorLessThanSignedLimb() { using (var a = new HugeRational("-3845721")) { @@ -270,7 +270,7 @@ namespace MPIR.Tests.HugeRationalTests } [TestMethod] - public void OperatorLessThanOrEqualSignedLimb() + public void RationalOperatorLessThanOrEqualSignedLimb() { using (var a = new HugeRational("-3845721")) { @@ -287,7 +287,7 @@ namespace MPIR.Tests.HugeRationalTests } [TestMethod] - public void OperatorGreaterThanSignedLimb() + public void RationalOperatorGreaterThanSignedLimb() { using (var a = new HugeRational("-3845721")) { @@ -301,7 +301,7 @@ namespace MPIR.Tests.HugeRationalTests } [TestMethod] - public void OperatorGreaterThanOrEqualSignedLimb() + public void RationalOperatorGreaterThanOrEqualSignedLimb() { using (var a = new HugeRational("-3845721")) { @@ -322,7 +322,7 @@ namespace MPIR.Tests.HugeRationalTests #region comparison operators with double [TestMethod] - public void OperatorLessThanDouble() + public void RationalOperatorLessThanDouble() { using (var a = new HugeRational("-3845721")) { @@ -336,7 +336,7 @@ namespace MPIR.Tests.HugeRationalTests } [TestMethod] - public void OperatorLessThanOrEqualDouble() + public void RationalOperatorLessThanOrEqualDouble() { using (var a = new HugeRational("-3845721")) { @@ -353,7 +353,7 @@ namespace MPIR.Tests.HugeRationalTests } [TestMethod] - public void OperatorGreaterThanDouble() + public void RationalOperatorGreaterThanDouble() { using (var a = new HugeRational("-3845721")) { @@ -367,7 +367,7 @@ namespace MPIR.Tests.HugeRationalTests } [TestMethod] - public void OperatorGreaterThanOrEqualDouble() + public void RationalOperatorGreaterThanOrEqualDouble() { using (var a = new HugeRational("-3845721")) { @@ -389,7 +389,7 @@ namespace MPIR.Tests.HugeRationalTests #region Equals [TestMethod] - public void EqualsHugeRational() + public void RationalEqualsHugeRational() { using (var a = new HugeRational("-222509832503450298345029835740293845721")) using (var b = new HugeRational("222509832503450298345029835740293845720")) @@ -403,7 +403,7 @@ namespace MPIR.Tests.HugeRationalTests } [TestMethod] - public void EqualsExpression() + public void RationalEqualsExpression() { using (var a = new HugeRational("-222509832503450298345029835740293845721")) using (var b = new HugeRational("222509832503450298345029835740293845720")) @@ -416,7 +416,7 @@ namespace MPIR.Tests.HugeRationalTests } [TestMethod] - public void EqualsNonExpression() + public void RationalEqualsNonExpression() { using (var a = new HugeRational("-222509832503450298345029835740293845721")) { @@ -425,7 +425,7 @@ namespace MPIR.Tests.HugeRationalTests } [TestMethod] - public void EqualsLimb() + public void RationalEqualsLimb() { using (var a = new HugeRational("222509832503")) { @@ -437,7 +437,7 @@ namespace MPIR.Tests.HugeRationalTests } [TestMethod] - public void EqualsSignedLimb() + public void RationalEqualsSignedLimb() { using (var a = new HugeRational("-222509832505")) { @@ -449,7 +449,7 @@ namespace MPIR.Tests.HugeRationalTests } [TestMethod] - public void EqualsDouble() + public void RationalEqualsDouble() { using (var a = new HugeRational("-222509832505")) { @@ -466,7 +466,7 @@ namespace MPIR.Tests.HugeRationalTests #region Equality operators with expr [TestMethod] - public void EqualsOperatorHugeRational() + public void RationalEqualsOperatorHugeRational() { using (var a = new HugeRational("-222509832503450298345029835740293845721")) using (var b = new HugeRational("222509832503450298345029835740293845720")) @@ -479,7 +479,7 @@ namespace MPIR.Tests.HugeRationalTests } [TestMethod] - public void NotEqualOperatorHugeRational() + public void RationalNotEqualOperatorHugeRational() { using (var a = new HugeRational("-222509832503450298345029835740293845721")) using (var b = new HugeRational("222509832503450298345029835740293845720")) @@ -496,7 +496,7 @@ namespace MPIR.Tests.HugeRationalTests #region Equality operators with Limb [TestMethod] - public void EqualsOperatorLimb() + public void RationalEqualsOperatorLimb() { using (var a = new HugeRational("-835740293845721")) { @@ -508,7 +508,7 @@ namespace MPIR.Tests.HugeRationalTests } [TestMethod] - public void NotEqualOperatorLimb() + public void RationalNotEqualOperatorLimb() { using (var a = new HugeRational("-835740293845721")) { @@ -524,7 +524,7 @@ namespace MPIR.Tests.HugeRationalTests #region Equality operators with Signed Limb [TestMethod] - public void EqualsOperatorSignedLimb() + public void RationalEqualsOperatorSignedLimb() { using (var a = new HugeRational("-835740293845721")) { @@ -536,7 +536,7 @@ namespace MPIR.Tests.HugeRationalTests } [TestMethod] - public void NotEqualOperatorSignedLimb() + public void RationalNotEqualOperatorSignedLimb() { using (var a = new HugeRational("-835740293845721")) { @@ -552,7 +552,7 @@ namespace MPIR.Tests.HugeRationalTests #region Equality operators with Double [TestMethod] - public void EqualsOperatorDouble() + public void RationalEqualsOperatorDouble() { using (var a = new HugeRational("-835740293845721")) { @@ -565,7 +565,7 @@ namespace MPIR.Tests.HugeRationalTests } [TestMethod] - public void NotEqualOperatorDouble() + public void RationalNotEqualOperatorDouble() { using (var a = new HugeRational("-835740293845721")) { @@ -582,7 +582,7 @@ namespace MPIR.Tests.HugeRationalTests #region GetHashCode [TestMethod] - public void GetHashCodeTest() + public void RationalGetHashCodeTest() { using (var a = new HugeRational("-222509832503450298345029835740293845721")) { @@ -597,7 +597,7 @@ namespace MPIR.Tests.HugeRationalTests #region Sign [TestMethod] - public void Sign() + public void RationalSign() { using (var a = new HugeRational("-222509832503450298345029835740293845721")) { diff --git a/mpir.net/mpir.net-tests/HugeRationalTests/ConstructionAndDisposal.cs b/mpir.net/mpir.net-tests/HugeRationalTests/ConstructionAndDisposal.cs index 44e38705..58b12fa9 100644 --- a/mpir.net/mpir.net-tests/HugeRationalTests/ConstructionAndDisposal.cs +++ b/mpir.net/mpir.net-tests/HugeRationalTests/ConstructionAndDisposal.cs @@ -26,7 +26,7 @@ namespace MPIR.Tests.HugeRationalTests public class ConstructionAndDisposal { [TestMethod] - public void DefaultConstructor() + public void RationalDefaultConstructor() { using (var a = new HugeRational()) { @@ -43,7 +43,7 @@ namespace MPIR.Tests.HugeRationalTests } [TestMethod] - public void Numerator() + public void RationalNumerator() { using (var a = new HugeRational()) { @@ -54,7 +54,7 @@ namespace MPIR.Tests.HugeRationalTests } [TestMethod] - public void Denominator() + public void RationalDenominator() { using (var a = new HugeRational()) { @@ -65,7 +65,7 @@ namespace MPIR.Tests.HugeRationalTests } [TestMethod] - public void Dispose() + public void RationalDispose() { var a = new HugeRational(); a.Dispose(); @@ -80,7 +80,7 @@ namespace MPIR.Tests.HugeRationalTests } [TestMethod] - public void ConstructorFromLong() + public void RationalConstructorFromLong() { var n = "123456789123456"; var d = "12764787846358441471"; @@ -95,7 +95,7 @@ namespace MPIR.Tests.HugeRationalTests } [TestMethod] - public void ConstructorFromLongNegative() + public void RationalConstructorFromLongNegative() { var n = "-123456789123456"; var d = "12764787846358441471"; @@ -110,7 +110,7 @@ namespace MPIR.Tests.HugeRationalTests } [TestMethod] - public void ConstructorFromULong() + public void RationalConstructorFromULong() { var d = "12764787846358441471"; using (var a = new HugeRational(ulong.MaxValue, ulong.Parse(d))) @@ -125,7 +125,7 @@ namespace MPIR.Tests.HugeRationalTests } [TestMethod] - public void ConstructorFromDouble() + public void RationalConstructorFromDouble() { using (var a = new HugeRational(123456789123456.9)) { @@ -134,7 +134,7 @@ namespace MPIR.Tests.HugeRationalTests } [TestMethod] - public void ConstructorFromDoubleNegative() + public void RationalConstructorFromDoubleNegative() { using (var a = new HugeRational(-123456789123456.9)) { @@ -143,7 +143,7 @@ namespace MPIR.Tests.HugeRationalTests } [TestMethod] - public void Allocate() + public void RationalAllocate() { using (var a = new HugeRational(129, 193)) { @@ -156,7 +156,7 @@ namespace MPIR.Tests.HugeRationalTests } [TestMethod] - public void StringConstructor() + public void RationalStringConstructor() { var n = "5432109876543212345789023245987/362736035870515331128527330659"; using (var a = new HugeRational(n)) @@ -168,20 +168,20 @@ namespace MPIR.Tests.HugeRationalTests [TestMethod] [ExpectedException(typeof(ArgumentException))] - public void StringConstructorInvalid() + public void RationalStringConstructorInvalid() { var a = new HugeRational("12345A"); } [TestMethod] [ExpectedException(typeof(ArgumentException))] - public void StringConstructorInvalid2() + public void RationalStringConstructorInvalid2() { var a = new HugeRational("12345/54321A"); } [TestMethod] - public void StringConstructorHex() + public void RationalStringConstructorHex() { using (var i = new HugeInt("362736035870515331128527330659")) { @@ -195,7 +195,7 @@ namespace MPIR.Tests.HugeRationalTests } [TestMethod] - public void StringConstructorHexPrefix() + public void RationalStringConstructorHexPrefix() { using (var i = new HugeInt("362736035870515331128527330659")) { @@ -210,7 +210,7 @@ namespace MPIR.Tests.HugeRationalTests } [TestMethod] - public void StringAssignmentHexPrefix() + public void RationalStringAssignmentHexPrefix() { using (var i = new HugeInt("362736035870515331128527330659")) { @@ -228,7 +228,7 @@ namespace MPIR.Tests.HugeRationalTests } [TestMethod] - public void ConstructorFromExpression() + public void RationalConstructorFromExpression() { using (var a = new HugeRational("2340958273409578234095823045723490587/362736035870515331128527330659")) using (var b = new HugeRational(a + 1)) diff --git a/mpir.net/mpir.net-tests/HugeRationalTests/Conversions.cs b/mpir.net/mpir.net-tests/HugeRationalTests/Conversions.cs index 9e600a72..1f8c5c92 100644 --- a/mpir.net/mpir.net-tests/HugeRationalTests/Conversions.cs +++ b/mpir.net/mpir.net-tests/HugeRationalTests/Conversions.cs @@ -27,7 +27,7 @@ namespace MPIR.Tests.HugeRationalTests public class Conversions { [TestMethod] - public void ToStringDecimal() + public void RationalToStringDecimal() { var n = "-23429384756298357462983476598345623984756"; using (var a = new HugeRational(n)) @@ -37,7 +37,7 @@ namespace MPIR.Tests.HugeRationalTests } [TestMethod] - public void ToStringHex() + public void RationalToStringHex() { var n = "-23429abcdef298357462983fedcba345623984756"; using (var a = new HugeRational(n, 16)) @@ -48,7 +48,7 @@ namespace MPIR.Tests.HugeRationalTests } [TestMethod] - public void FromUlong() + public void RationalFromUlong() { using (var a = new HugeRational()) { @@ -60,7 +60,7 @@ namespace MPIR.Tests.HugeRationalTests } [TestMethod] - public void FromLong() + public void RationalFromLong() { using (var a = new HugeRational()) { @@ -72,7 +72,7 @@ namespace MPIR.Tests.HugeRationalTests } [TestMethod] - public void ToAndFromDouble() + public void RationalToAndFromDouble() { using (var a = new HugeRational()) using (var lo = new HugeRational()) @@ -87,7 +87,7 @@ namespace MPIR.Tests.HugeRationalTests } [TestMethod] - public void ToAndFromFloat() + public void RationalToAndFromFloat() { using (var a = new HugeRational()) using (var lo = new HugeRational()) @@ -103,7 +103,7 @@ namespace MPIR.Tests.HugeRationalTests } [TestMethod] - public void FromString() + public void RationalFromString() { using (var a = new HugeRational()) { @@ -119,7 +119,7 @@ namespace MPIR.Tests.HugeRationalTests [TestMethod] [ExpectedException(typeof(ArgumentException))] - public void FromInvalidString() + public void RationalFromInvalidString() { using (var a = new HugeRational()) { @@ -128,7 +128,7 @@ namespace MPIR.Tests.HugeRationalTests } [TestMethod] - public void ToStringTruncated() + public void RationalToStringTruncated() { var n = string.Concat("123456789".Select(c => new string(c, 30))); using (var a = new HugeRational(n)) @@ -141,7 +141,7 @@ namespace MPIR.Tests.HugeRationalTests } [TestMethod] - public void ApproximateSizeInBase() + public void RationalApproximateSizeInBase() { using (var a = new HugeRational("2983475029834750293429834750298347502934298347502983475029342983475029834750293429834750298347502934")) { diff --git a/mpir.net/mpir.net-tests/HugeRationalTests/ExpressionTests.cs b/mpir.net/mpir.net-tests/HugeRationalTests/ExpressionTests.cs index 67d4446f..77434e40 100644 --- a/mpir.net/mpir.net-tests/HugeRationalTests/ExpressionTests.cs +++ b/mpir.net/mpir.net-tests/HugeRationalTests/ExpressionTests.cs @@ -31,7 +31,7 @@ namespace MPIR.Tests.HugeRationalTests public class ExpressionTests { [TestMethod] - public void TestAllExpressions() + public void RationalTestAllExpressions() { var baseExpr = typeof(RationalExpression); var allExpressions = diff --git a/mpir.net/mpir.net-tests/HugeRationalTests/IO.cs b/mpir.net/mpir.net-tests/HugeRationalTests/IO.cs index 8bc6e68a..3569bc48 100644 --- a/mpir.net/mpir.net-tests/HugeRationalTests/IO.cs +++ b/mpir.net/mpir.net-tests/HugeRationalTests/IO.cs @@ -29,7 +29,7 @@ namespace MPIR.Tests.HugeRationalTests public class IO { [TestMethod] - public void InputOutputRaw() + public void RationalInputOutputRaw() { Assert.Fail("This test currently crashes"); using (var a = new HugeRational("0x10123456789ABCDEF0123456789ABCDEF0123456789ABCDEF/361720912810755408215708460645842859722715865206816237944587")) @@ -46,7 +46,7 @@ namespace MPIR.Tests.HugeRationalTests } [TestMethod] - public void InputOutputStr() + public void RationalInputOutputStr() { using (var a = new HugeRational("0x10123456789ABCDEF0123456789ABCDEF0123456789ABCDEF")) using (var b = new HugeRational()) @@ -67,7 +67,7 @@ namespace MPIR.Tests.HugeRationalTests } [TestMethod] - public void InputOutputStrHex() + public void RationalInputOutputStrHex() { using (var a = new HugeRational("0x10123456789ABCDEF0123456789ABCDEF0123456789ABCDEF")) using (var b = new HugeRational()) @@ -92,7 +92,7 @@ namespace MPIR.Tests.HugeRationalTests } [TestMethod] - public void InputOutputStrHexLower() + public void RationalInputOutputStrHexLower() { using (var a = new HugeRational("0x10123456789ABCDEF0123456789ABCDEF0123456789ABCDEF")) using (var b = new HugeRational()) @@ -117,7 +117,7 @@ namespace MPIR.Tests.HugeRationalTests } [TestMethod] - public void InputOutputStrOctal() + public void RationalInputOutputStrOctal() { using (var a = new HugeRational("0x10123456789ABCDEF0123456789ABCDEF0123456789ABCDEF")) using (var b = new HugeRational()) @@ -142,7 +142,7 @@ namespace MPIR.Tests.HugeRationalTests } [TestMethod] - public void InputOutputStrBinary() + public void RationalInputOutputStrBinary() { using (var a = new HugeRational("0x10123456789ABCDEF0123456789ABCDEF0123456789ABCDEF")) using (var b = new HugeRational()) @@ -167,7 +167,7 @@ namespace MPIR.Tests.HugeRationalTests } [TestMethod] - public void InputOutputStr62() + public void RationalInputOutputStr62() { using (var a = new HugeRational("0x10123456789ABCDEF0123456789ABCDEF0123456789ABCDEF")) using (var b = new HugeRational()) diff --git a/mpir.net/mpir.net-tests/RandomTests/Random.cs b/mpir.net/mpir.net-tests/RandomTests/Random.cs index 016d53fc..ab0d93e9 100644 --- a/mpir.net/mpir.net-tests/RandomTests/Random.cs +++ b/mpir.net/mpir.net-tests/RandomTests/Random.cs @@ -65,7 +65,7 @@ namespace MPIR.Tests.RandomTests } [TestMethod] - public void SeedingMersenneTwister() + public void RandomSeedingMersenneTwister() { using (var r = MpirRandom.MersenneTwister()) { @@ -86,7 +86,7 @@ namespace MPIR.Tests.RandomTests } [TestMethod] - public void SeedingDefault() + public void RandomSeedingDefault() { using (var r = MpirRandom.Default()) { @@ -107,7 +107,7 @@ namespace MPIR.Tests.RandomTests } [TestMethod] - public void SeedingLCSize() + public void RandomSeedingLCSize() { using (var r = MpirRandom.LinearCongruential(128)) { @@ -128,7 +128,7 @@ namespace MPIR.Tests.RandomTests } [TestMethod] - public void SeedingLC() + public void RandomSeedingLC() { using (var a = new HugeInt("5209384572093847098342590872309452304529345409827509283745078")) using (var r = MpirRandom.LinearCongruential(a, 98570948725939831, 256)) @@ -150,7 +150,7 @@ namespace MPIR.Tests.RandomTests } [TestMethod] - public void HugeIntBits() + public void RandomHugeIntBits() { using (var r = MpirRandom.Default()) using (var a = new HugeInt()) @@ -162,7 +162,7 @@ namespace MPIR.Tests.RandomTests } [TestMethod] - public void HugeInt1() + public void RandomHugeInt1() { using (var r = MpirRandom.Default()) using (var a = new HugeInt()) @@ -174,7 +174,7 @@ namespace MPIR.Tests.RandomTests } [TestMethod] - public void HugeIntBitsChunky() + public void RandomHugeIntBitsChunky() { using (var r = MpirRandom.Default()) using (var a = new HugeInt())