示例#1
0
        public void WhenCallingAddAssemblyVersionDescriptionItShouldSetupTheAssemblyVersionDescription()
        {
            var ib = new InfoBuilder("1", "title").AddAssemblyVersionDescription();
            var expectedVersion = GetType().Assembly.GetName().Version;

            ib.GetType().GetField("_description", BindingFlags.Instance | BindingFlags.NonPublic).GetValue(ib).Should().Be($"AssemblyVersion: {expectedVersion}");
        }