include file.name.util.FileNameUtil

include test.util.TestUtil

@class
FileNameUtilTest(){
	@test
	testGetPathConvertToNixPath(){
		local path="D:/foo/bar"

		${assertEquals} $(FileNameUtil _getPathUnix ${path}) /d/foo/bar
	}

	@test
	testGetPathConvertToWinPath(){
		local path="/d/foo/bar"

		${assertEquals} $(FileNameUtil _getPathWin ${path}) D:/foo/bar
	}

	@test
	testGetPathPreserveNixPath(){
		local path="/d/foo/bar"

		${assertEquals} ${path} $(FileNameUtil _getPathUnix ${path})
	}

	@test
	testGetPathPreserveWinPath(){
		local path="D:/foo/bar"

		${assertEquals} ${path} $(FileNameUtil _getPathWin ${path})
	}

	local assertEquals="TestUtil assertEquals"

	$@
}
include file.name.util.FileNameUtil

include test.util.TestUtil

@class
FileNameUtilTest(){
	@test
	testGetPathConvertToNixPath(){
		local path="D:/foo/bar"

		${assertEquals} $(FileNameUtil getPath nix ${path}) /d/foo/bar
	}

	@test
	testGetPathConvertToWinPath(){
		local path="/d/foo/bar"

		${assertEquals} $(FileNameUtil getPath win ${path}) D:/foo/bar
	}

	@test
	testGetPathPreserveNixPath(){
		local path="/d/foo/bar"

		${assertEquals} ${path} $(FileNameUtil getPath nix ${path})
	}

	@test
	testGetPathPreserveWinPath(){
		local path="D:/foo/bar"

		${assertEquals} ${path} $(FileNameUtil getPath win ${path})
	}

	local assertEquals="TestUtil assertEquals"

	$@
}
--- 
+++ 
@@ -8,28 +8,28 @@
 	testGetPathConvertToNixPath(){
 		local path="D:/foo/bar"
 
-		${assertEquals} $(FileNameUtil getPath nix ${path}) /d/foo/bar
+		${assertEquals} $(FileNameUtil _getPathUnix ${path}) /d/foo/bar
 	}
 
 	@test
 	testGetPathConvertToWinPath(){
 		local path="/d/foo/bar"
 
-		${assertEquals} $(FileNameUtil getPath win ${path}) D:/foo/bar
+		${assertEquals} $(FileNameUtil _getPathWin ${path}) D:/foo/bar
 	}
 
 	@test
 	testGetPathPreserveNixPath(){
 		local path="/d/foo/bar"
 
-		${assertEquals} ${path} $(FileNameUtil getPath nix ${path})
+		${assertEquals} ${path} $(FileNameUtil _getPathUnix ${path})
 	}
 
 	@test
 	testGetPathPreserveWinPath(){
 		local path="D:/foo/bar"
 
-		${assertEquals} ${path} $(FileNameUtil getPath win ${path})
+		${assertEquals} ${path} $(FileNameUtil _getPathWin ${path})
 	}
 
 	local assertEquals="TestUtil assertEquals"
Test using helper methods instead
