forked from fo-dicom/fo-dicom
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replaced use of FileStream with IFileReference. Issue fo-dicom#69
- Loading branch information
1 parent
0922954
commit f0319a8
Showing
3 changed files
with
36 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// Copyright (c) 2012-2015 fo-dicom contributors. | ||
// Licensed under the Microsoft Public License (MS-PL). | ||
|
||
namespace Dicom.Imaging | ||
{ | ||
using System.IO; | ||
|
||
using Xunit; | ||
|
||
public class ColorTableTest | ||
{ | ||
[Fact] | ||
public void SaveLut_ValidTable_Succeeds() | ||
{ | ||
var path = @".\Test Data\monochrome1.lut"; | ||
if (File.Exists(path)) File.Delete(path); | ||
|
||
ColorTable.SaveLUT(path, ColorTable.Monochrome1); | ||
Assert.True(File.Exists(path)); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters