ICSharpCode.NRefactory.CSharp.InsertParenthesesVisitorTests.DoubleNegation C# (CSharp) Method

DoubleNegation() private method

private DoubleNegation ( ) : void
return void
		public void DoubleNegation()
		{
			Expression expr = new UnaryOperatorExpression(
				UnaryOperatorType.Minus,
				new UnaryOperatorExpression(UnaryOperatorType.Minus, new IdentifierExpression("a"))
			);
			
			Assert.AreEqual("- -a", InsertRequired(expr));
			Assert.AreEqual("-(-a)", InsertReadable(expr));
		}