Chromium Code Reviews| Index: visual_studio/NativeClientVSAddIn/UnitTests/TestUtilities.cs |
| diff --git a/visual_studio/NativeClientVSAddIn/UnitTests/TestUtilities.cs b/visual_studio/NativeClientVSAddIn/UnitTests/TestUtilities.cs |
| index 45f4e8dd1977aa0adbf17caecfc1d110c19d5dba..8a7eb00549282370199aef4485295c7d19d23f73 100644 |
| --- a/visual_studio/NativeClientVSAddIn/UnitTests/TestUtilities.cs |
| +++ b/visual_studio/NativeClientVSAddIn/UnitTests/TestUtilities.cs |
| @@ -1,4 +1,4 @@ |
| -// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| +// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| @@ -327,13 +327,19 @@ namespace UnitTests |
| string pageName, |
| string propertyName, |
| string expectedValue, |
| - bool ignoreCase) |
| + bool ignoreCase, |
| + bool expand=false) |
|
binji
2012/10/23 00:59:32
add param to docs above
|
| { |
| StringComparison caseSensitive = ignoreCase ? |
| StringComparison.OrdinalIgnoreCase : StringComparison.Ordinal; |
| IVCRulePropertyStorage rule = configuration.Rules.Item(pageName); |
| - string propertyValue = rule.GetUnevaluatedPropertyValue(propertyName); |
| + string propertyValue; |
| + if (expand) |
| + propertyValue = rule.GetEvaluatedPropertyValue(propertyName); |
| + else |
| + propertyValue = rule.GetUnevaluatedPropertyValue(propertyName); |
| + |
| string message = string.Format( |
| "{0} should be contained in {1}. Page: {2}, Property: {3}, Configuration: {4}", |