public void DoubleAddOverride() { var vmType = new ResourceType("Microsoft.Compute/virtualMachines"); var options = new ArmClientOptions(); options.SetApiVersion(vmType, "foo"); options.SetApiVersion(vmType, "bar"); options.TryGetApiVersion(vmType, out var actualVersion); Assert.AreEqual("bar", actualVersion); }