public void WithAutoGenerateBindingRedirectsDllProject() { var csproj = @"<Project Sdk=""Microsoft.NET.Sdk""> <PropertyGroup> <TargetFramework>net452</TargetFramework> <GenerateAssemblyInfo>false</GenerateAssemblyInfo> </PropertyGroup> </Project>"; var expected = @"<Project Sdk=""Microsoft.NET.Sdk""> <PropertyGroup> <TargetFramework>net452</TargetFramework> <GenerateAssemblyInfo>false</GenerateAssemblyInfo> <AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects> <GenerateBindingRedirectsOutputType>true</GenerateBindingRedirectsOutputType> </PropertyGroup> </Project>"; var actual = Migrate.WithAutoGenerateBindingRedirects(csproj); Assert.AreEqual(expected, actual); }