mirror of
https://github.com/bitwarden/server.git
synced 2025-06-30 15:42:48 -05:00
Added Services and Utilities Tests to Core.Test project (#1068)
* Sorted usings * Added CoreHelpersTests * Added CloneObject test * Added comments to SelfHostedAttributeTests * Changed private variable declaration to be inline with the rest of the project * Changed to SUT naming scheme * Scaffolded AppleIapServiceTests * Scaffolded I18nServiceTests.cs * Scaffolded I18nViewLocalizerTests * Scaffolded LocalSendStorageServiceTests * Added tests to ReadableBytesSize_Success * Add more CleanCertificateThumbprint tests * Added more tests for the ExtendQuery method * Removed AppleIapServiceTests * Removed I18nServiceTests * Removed I18nViewLocalizerTests * Removed LocalSendStorageServiceTests * Converted Batch_Success to theory with InlineData * Simplified Batch_Success so there is less branching and more accuracy * Switched to using size variable to format readable bytes for any number lower than 1024 * Fixed test data to work in all locales
This commit is contained in:
@ -349,7 +349,7 @@ namespace Bit.Core.Utilities
|
||||
}
|
||||
else
|
||||
{
|
||||
return absoluteSize.ToString("0 Bytes"); // Byte
|
||||
return size.ToString("0 Bytes"); // Byte
|
||||
}
|
||||
|
||||
// Divide by 1024 to get fractional value
|
||||
|
Reference in New Issue
Block a user