Skip to content

Commit

Permalink
update obsolete code
Browse files Browse the repository at this point in the history
  • Loading branch information
gasparnagy committed May 5, 2010
1 parent 1a62c53 commit f7c57eb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
7 changes: 2 additions & 5 deletions Runtime/FeatureInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,8 @@ public class FeatureInfo
public string Title { get; private set; }
public string Description { get; private set; }
public CultureInfo Language { get; private set; }
[Obsolete("Use Language property that is now ensured to be a specific culture.")]
public CultureInfo CultureInfo
{
get { return Language; }
}
[Obsolete("Use Language property that is now ensured to be a specific culture.", true)]
public CultureInfo CultureInfo { get { throw new NotSupportedException(); } }

public FeatureInfo(CultureInfo language, string title, string description, params string[] tags)
{
Expand Down
4 changes: 2 additions & 2 deletions Runtime/TestRunner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ private BindingMatch Match(StepBinding stepBinding, StepArgs stepArgs, bool useP
return null;

// Check if regex arguments can be converted to the method parameters
CultureInfo cultureInfo = FeatureContext.Current.FeatureInfo.CultureInfo;
CultureInfo cultureInfo = FeatureContext.Current.FeatureInfo.Language;
for (int regexArgIndex = 0; regexArgIndex < regexArgs.Length; regexArgIndex++)
{
Type parameterType = stepBinding.ParameterTypes[regexArgIndex];
Expand Down Expand Up @@ -432,7 +432,7 @@ private object[] GetExecuteArguments(BindingMatch match)
if (regexArgs.Length + match.ExtraArguments.Length != match.StepBinding.ParameterTypes.Length)
throw errorProvider.GetParameterCountError(match, regexArgs.Length + match.ExtraArguments.Length);

CultureInfo cultureInfo = FeatureContext.Current.FeatureInfo.CultureInfo;
CultureInfo cultureInfo = FeatureContext.Current.FeatureInfo.Language;
for (int regexArgIndex = 0; regexArgIndex < regexArgs.Length; regexArgIndex++)
{
Type parameterType = match.StepBinding.ParameterTypes[regexArgIndex];
Expand Down

0 comments on commit f7c57eb

Please sign in to comment.