public void ArchiveType_StaticPropsSplit_works(SwitchArchiveType type, string expectedType) { var fixture = new SevenZipSettingsFixture(); var expected = "-t" + expectedType + ".split"; var actual = fixture.Parse(b => type.Volumes().BuildArguments(ref b)); actual.ShouldBe(expected); }
/// <summary> /// fluent setter for <see cref="ISupportSwitchArchiveType"/>. /// </summary> /// <typeparam name="T">the builder to support the <see cref="ISupportSwitchArchiveType"/>.</typeparam> /// <param name="this">The builder-instance.</param> /// <param name="type">The type to set.</param> /// <returns>The builder-instance for fluent re-use.</returns> public static T WithArchiveType <T>(this T @this, SwitchArchiveType type) where T : ISupportSwitchBuilder <ISupportSwitchArchiveType> { @this.Command.ArchiveType = type; return(@this); }