public void SettingTitleResourceIdAndTitleThrows() { var attribute = new migrate::CmdLine.CommandLineArgumentsAttribute { TitleResourceId = "foo" }; Assert.Equal( migrate::System.Data.Entity.Migrations.Console.Resources.Strings.AmbiguousAttributeValues("Title", "TitleResourceId"), Assert.Throws <InvalidOperationException>(() => attribute.Title = "bar").Message); }
public void SettingTitleResourceIdAndTitleThrows() { var attribute = new migrate::CmdLine.CommandLineArgumentsAttribute { TitleResourceId = "foo" }; Assert.Equal( migrate::System.Data.Entity.Migrations.Console.Resources.Strings.AmbiguousAttributeValues("Title", "TitleResourceId"), Assert.Throws<InvalidOperationException>(() => attribute.Title = "bar").Message); }