public void EqualityMethod_WithSameValues() { var target1 = new ByteSize(1000); var target2 = new ByteSize(1000); //Act var actual = target1.Equals(target2); //Assert actual.Should().BeTrue(); }
public async Task <IPartition> CreatePartition(ByteSize size, PartitionType partitionType, string name = "") { if (size.Equals(ByteSize.MaxValue)) { await PowerShellMixin.ExecuteScript($"New-Partition -DiskNumber {Number} -UseMaximumSize"); } else { await PowerShellMixin.ExecuteScript($"New-Partition -DiskNumber {Number} -Size {size.Bytes}"); } var partitions = await GetPartitions(); return(partitions.Last()); }